Several balenaEtcher fixes

pull/79/head
Botspot 4 years ago
parent 876829e1e6
commit 9b8abea057

@ -0,0 +1 @@
etcher debs compiled by Itai Nelken.

@ -9,8 +9,8 @@ function error {
rm -f ./etcher_1.5.109_armhf.deb
wget https://github.com/Itai-Nelken/Etcher-arm-32-64/raw/main/etcher_1.5.109_armhf.deb || error "Failed to download!"
wget https://github.com/Itai-Nelken/Etcher-arm-32-64/raw/main/etcher_1.5.109_armhf.deb -O ~/etcher.deb || error "Failed to download!"
sudo apt install -y --fix-broken ./etcher_1.5.109_armhf.deb || error "failed to install deb file!"
rm -f ./etcher_1.5.109_armhf.deb
exit 0
sudo apt install -y --fix-broken ~/etcher.deb || error "failed to install deb file!"
rm -f ~/etcher.deb
exit 0

@ -1,5 +1,7 @@
#!/bin/bash
#etcher debs compiled by Itai Nelken.
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
@ -7,10 +9,10 @@ function error {
exit 1
}
rm -f ./balena-etcher-1.5.109_arm64.deb
rm -f ./balena-etcher-electron_1.5.110%2B1f8f7ad7_arm64.deb
wget https://github.com/Itai-Nelken/Etcher-arm-32-64/blob/main/balena-etcher-1.5.109_arm64.deb || error "Failed to download!"
wget https://github.com/Itai-Nelken/Etcher-arm-32-64/raw/main/balena-etcher-electron_1.5.110%2B1f8f7ad7_arm64.deb -O ~/etcher.deb || error "Failed to download!"
sudo apt install -y --fix-broken ./balena-etcher-1.5.109_arm64.deb || error "failed to install deb file!"
rm -f ./balena-etcher-1.5.109_arm64.deb
sudo apt install -y --fix-broken ~/etcher.deb || error "failed to install deb file!"
rm -f ~/etcher.deb
exit 0

@ -7,6 +7,6 @@ function error {
exit 1
}
sudo apt purge -y balena-etcher-electron || error "failed to purge the deb file!"
rm -f ./etcher_1.5.109_armhf.deb
sudo apt purge -y balena-etcher-electron || error "failed to purge the deb file!"
rm -f ~/etcher.deb &>/dev/null
exit 0

Loading…
Cancel
Save