Update glacier

This commit is contained in:
everest 2022-06-08 12:57:46 +00:00 committed by GitHub
parent 7caa78f3dd
commit de61a35eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ while [[ $# -gt 0 ]]; do
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
mkdir $input && mv $input.tar.gz $input && cd $input
printf "$blue [ i ]$reset Verifying integrity of package...\n"
shasum $input.tar.gz
sha256sum $input.tar.gz
tar -xf $input.tar.gz
if [ "$?" != "0" ]; then
printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
@ -86,7 +86,7 @@ while [[ $# -gt 0 ]]; do
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
mkdir $input && mv $input.tar.gz $input && cd $input
printf "$blue [ i ]$reset Verifying integrity of package...\n"
shasum $input.tar.gz
sha256sum $input.tar.gz
tar -xf $input.tar.gz
if [ "$?" != "0" ]; then
printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
@ -124,7 +124,7 @@ while [[ $# -gt 0 ]]; do
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
mkdir $input && mv $input.tar.gz $input && cd $input
printf "$blue [ i ]$reset Verifying integrity of package...\n"
shasum $input.tar.gz
sha256sum $input.tar.gz
tar -xf $input.tar.gz
if [ "$?" != "0" ]; then
printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
@ -168,7 +168,7 @@ while [[ $# -gt 0 ]]; do
exit 1
fi
printf "$blue [ i ]$reset Verifying integrity of package...\n"
shasum $input.tar.gz
sha256sum $input.tar.gz
mv $input.tar.gz /var/cache/glacier
printf "\033[1;32m [ $check ] \033[m Operation completed."
exit 0