Temporarily rolled back integrity checking

This commit is contained in:
lw-everestlinux 2022-09-06 13:57:54 -04:00
parent 5688b4753d
commit 2be842a411

View File

@ -65,10 +65,10 @@ 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"
GLACIER_INTEGRITY_CHECK
if [ "$?" != "0" ]; then
exit 0
fi
#GLACIER_INTEGRITY_CHECK
# if [ "$?" != "0" ]; then
# exit 0
# fi
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
@ -113,10 +113,10 @@ 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"
GLACIER_INTEGRITY_CHECK
if [ "$?" != "0" ]; then
exit 0
fi
#GLACIER_INTEGRITY_CHECK
# if [ "$?" != "0" ]; then
# exit 0
# fi
tar -xf $input.tar.gz
if [ "$?" != "0" ]; then
printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
@ -158,10 +158,10 @@ 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"
GLACIER_INTEGRITY_CHECK
if [ "$?" != "0" ]; then
exit 0
fi
#GLACIER_INTEGRITY_CHECK
# if [ "$?" != "0" ]; then
# exit 0
# fi
tar -xf $input.tar.gz
if [ "$?" != "0" ]; then
printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
@ -209,10 +209,10 @@ while [[ $# -gt 0 ]]; do
exit 1
fi
printf "$blue [ i ]$reset Verifying integrity of package...\n"
GLACIER_INTEGRITY_CHECK
if [ "$?" != "0" ]; then
exit 0
fi
#GLACIER_INTEGRITY_CHECK
# if [ "$?" != "0" ]; then
# exit 0
# fi
mv $input.tar.gz /var/cache/glacier
printf "\033[1;32m [ $check ] \033[m Operation completed.\n"
exit 0