lightpad: use pkg-install & purge-installed

pull/910/head
Itai Nelken 4 years ago
parent 90e5e04f6e
commit f5013e09ca
No known key found for this signature in database
GPG Key ID: E45E4E2C367B8AE6

@ -9,7 +9,7 @@ function error {
wget https://github.com/libredeb/lightpad/releases/download/v0.0.8/lightpad_0.0.8.rev1_armhf.deb -O ~/lightpad.deb|| error "Failed to download lightpad.deb!"
sudo apt install -y --fix-missing ~/lightpad.deb || error "APT failed to install lightpad.deb!"
"${DIRECTORY}/pkg-install" "$HOME/lightpad.deb" "$(dirname "$0")" || error 'Failed to install lightpad.deb'
rm -f ~/lightpad.deb

@ -9,7 +9,7 @@ function error {
wget https://github.com/libredeb/lightpad/releases/download/v0.0.8/lightpad_0.0.8.rev1_arm64.deb -O ~/lightpad.deb || error "Failed to download lightpad.deb!"
sudo apt install -y --fix-missing ~/lightpad.deb || error "APT failed to install lightpad.deb!"
"${DIRECTORY}/pkg-install" "$HOME/lightpad.deb" "$(dirname "$0")" || error 'Failed to install lightpad.deb'
rm -f ~/lightpad.deb

@ -7,8 +7,6 @@ function error {
exit 1
}
sudo apt -y purge lightpad || error "Failed to uninstall lightpad"
sudo apt -y autoremove
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "Failed to uninstall lightpad package"
rm -f ~/.local/share/applications/lightpad.desktop

Loading…
Cancel
Save