Update glacier-remove.sh

This commit is contained in:
everest 2022-03-28 15:22:02 +00:00 committed by GitHub
parent 59cbc4c4b4
commit 5c3c31b70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,21 +16,16 @@ if [ "$?" != "0" ]; then
exit 1
fi
echo "[ i ] Fetching removal instructions..."
mkdir -v $input && mv -v $inpit.tar.gz $input && cd $input
tar -xvf $input.tar.gz
if [ "$?" != "0" ]; then
echo "[ X ] Could not unpack $input.tar.gz" 1>&2
exit 1
fi
cd $input
chmod +x REMOVE.sh
./REMOVE.sh
echo "[ i ] Cleaning up..."
cd ..
rm -rvf $input
rm /etc/glacier/pkginfo/$input-pkginfo.json
rm INSTALL.sh
rm UPDATE.sh
rm REMOVE.sh
rm LICENSE.md
rm $input.tar.gz
rm $input-pkginfo.json
rm $input
echo "[ i ] Operation completed."