#!/bin/bash
version=1.18.11

if package_installed balena-etcher-electron ;then
  status "First removing old balena-etcher-electron package to avoid errors..."
  apt_lock_wait
  sudo apt purge balena-etcher-electron -y --autoremove
fi

install_packages https://github.com/Pi-Apps-Coders/files/releases/download/large-files/balena-etcher_${version}_armv7l.deb || exit 1
