#!/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}_arm64.deb || exit 1
