Remarkable: install-32: use pkg-install

pull/942/head
Botspot 4 years ago
parent 0b3daca2a5
commit b2545ec397

@ -7,7 +7,8 @@ function error {
exit 1
}
wget https://remarkableapp.github.io/files/remarkable_1.87_all.deb || error 'Failed to Download!'
rm -f ~/remarkable.deb
wget -O ~/remarkable.deb https://remarkableapp.github.io/files/remarkable_1.87_all.deb || error 'Failed to download remarkable.deb!'
sudo apt --fix-broken -y install ./remarkable_1.87_all.deb || error 'Failed to install!'
rm remarkable_1.87_all.deb
"${DIRECTORY}/pkg-install" "$HOME/remarkable.deb" "$(dirname "$0")" || error "Failed to install ~/remarkable.deb!"
rm -f ~/remarkable.deb

@ -7,17 +7,4 @@ function error {
exit 1
}
#to set $arch variable
source "${DIRECTORY}/api" || error "failed to source ${DIRECTORY}/api"
if [ "$arch" == 64 ];then
#COMMANDS TO UNINSTALL 64BIT
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
elif [ "$arch" == 32 ];then
#COMMANDS TO UNINSTALL 32BIT
sudo apt purge remarkable -y || error "Failed to purge remarkable package!"
sudo apt autoremove -y
else
error "Failed to detect OS CPU architecture! Something is very wrong."
fi
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1

Loading…
Cancel
Save