From ec33d508b2a7041538fa04784e168ccb2bcea573 Mon Sep 17 00:00:00 2001 From: Botspot Date: Fri, 27 Aug 2021 22:44:17 -0500 Subject: [PATCH] scratch 2: use pkg-install --- apps/Scratch 2/install-32 | 2 +- apps/Scratch 2/uninstall | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/Scratch 2/install-32 b/apps/Scratch 2/install-32 index ff16834..94588aa 100755 --- a/apps/Scratch 2/install-32 +++ b/apps/Scratch 2/install-32 @@ -14,7 +14,7 @@ echo "Copying libpepflashplayer.so to /usr/lib/chromium-browser..." sudo cp -af ~/scratch2/libpepflashplayer.so /usr/lib/chromium-browser/libpepflashplayer.so || error "Failed to copy libpepflashplayer.so" echo "Installing scratch2 package..." -sudo apt install -yf ~/scratch2/scratch2_0.25_armhf.deb || error "Failed to install scratch2 package" +"${DIRECTORY}/pkg-install" "$HOME/scratch2/scratch2_0.25_armhf.deb" "$(dirname "$0")" || error "Failed to install scratch2 package" echo "Holding scratch2 package version so it won't upgrade..." echo "scratch2 hold" | sudo dpkg --set-selections diff --git a/apps/Scratch 2/uninstall b/apps/Scratch 2/uninstall index 0d6cf7a..64ec774 100755 --- a/apps/Scratch 2/uninstall +++ b/apps/Scratch 2/uninstall @@ -10,4 +10,4 @@ function error { echo "Allowing scratch2 package to be uninstallable..." echo "scratch2 install" | sudo dpkg --set-selections -sudo apt purge scratch2 -y || error "Failed to uninstall scratch2 package" +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "Failed to uninstall scratch2 package"