Update glacier-install.sh

This commit is contained in:
everest 2022-03-24 13:37:45 +00:00 committed by GitHub
parent ecfefffd87
commit 8d61a9b07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ if [ "$?" != "0" ]; then
exit 1 exit 1
fi fi
echo "[ i ] Unpacking $input.tar.gz..." echo "[ i ] Unpacking $input.tar.gz..."
mkdir $input && cd $input mkdir $input && mv input.tar.gz $input && cd $input
tar -xvf ../$input.tar.gz tar -xvf ../$input.tar.gz
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "[ X ] Could not unpack $input.tar.gz" 1>&2 echo "[ X ] Could not unpack $input.tar.gz" 1>&2
@ -26,9 +26,6 @@ chmod +x INSTALL.sh
./INSTALL.sh # Actually executes installation script ./INSTALL.sh # Actually executes installation script
echo "[ i ] Cleaning up..." # Status message echo "[ i ] Cleaning up..." # Status message
mv $input-pkginfo.json /etc/glacier/pkginfo mv $input-pkginfo.json /etc/glacier/pkginfo
rm $input.tar.gz cd ..
rm INSTALL.sh rm -rf $input
rm UPDATE.sh
rm REMOVE.sh # Cleans up installation files
rm LICENSE.md
echo "[ i ] Operation completed." echo "[ i ] Operation completed."