diff --git a/apps/Timeshift/install-32 b/apps/Timeshift/install-32 index 7882d90..829c8e4 100755 --- a/apps/Timeshift/install-32 +++ b/apps/Timeshift/install-32 @@ -7,7 +7,7 @@ function error { exit 1 } -cd $HOME/Downloads -wget https://github.com/teejee2008/timeshift/releases/download/v20.11.1/timeshift_20.11.1_armhf.deb || error 'Failed to download timeshift!' -sudo apt install -y --fix-broken ~/Downloads/timeshift_20.11.1_armhf.deb || error 'Failed to install .deb file!' -rm -f timeshift_20.11.1_armhf.deb +rm -f ~/timeshift.deb +wget -O ~/timeshift.deb https://github.com/teejee2008/timeshift/releases/download/v20.11.1/timeshift_20.11.1_armhf.deb || error 'Failed to download timeshift!' +"${DIRECTORY}/pkg-install" "$HOME/timeshift.deb" "$(dirname "$0")" || error 'Failed to install .deb file!' +rm -f ~/timeshift.deb diff --git a/apps/Timeshift/install-64 b/apps/Timeshift/install-64 index 4875ece..cd8f3f2 100755 --- a/apps/Timeshift/install-64 +++ b/apps/Timeshift/install-64 @@ -7,7 +7,7 @@ function error { exit 1 } -cd $HOME/Downloads -wget https://github.com/teejee2008/timeshift/releases/download/v20.11.1/timeshift_20.11.1_arm64.deb || error 'Failed to download timeshift!' -sudo apt install -y --fix-broken ~/Downloads/timeshift_20.11.1_arm64.deb || error 'Failed to install .deb file!' -rm -f timeshift_20.11.1_arm64.deb +rm -f ~/timeshift.deb +wget -O ~/timeshift.deb https://github.com/teejee2008/timeshift/releases/download/v20.11.1/timeshift_20.11.1_arm64.deb || error 'Failed to download timeshift!' +"${DIRECTORY}/pkg-install" "$HOME/timeshift.deb" "$(dirname "$0")" || error 'Failed to install .deb file!' +rm -f ~/timeshift.deb diff --git a/apps/Timeshift/uninstall b/apps/Timeshift/uninstall index 7751337..87437a6 100755 --- a/apps/Timeshift/uninstall +++ b/apps/Timeshift/uninstall @@ -7,5 +7,5 @@ function error { exit 1 } -sudo apt purge -y timeshift +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "Failed to uninstall timeshift package!" sudo rm -rf /etc/timeshift