Temporarily rolled back integrity checking
This commit is contained in:
parent
5688b4753d
commit
2be842a411
@ -65,10 +65,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
|
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
|
||||||
mkdir $input && mv $input.tar.gz $input && cd $input
|
mkdir $input && mv $input.tar.gz $input && cd $input
|
||||||
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
||||||
GLACIER_INTEGRITY_CHECK
|
#GLACIER_INTEGRITY_CHECK
|
||||||
if [ "$?" != "0" ]; then
|
# if [ "$?" != "0" ]; then
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
tar -xf $input.tar.gz
|
tar -xf $input.tar.gz
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
|
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"
|
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
|
||||||
mkdir $input && mv $input.tar.gz $input && cd $input
|
mkdir $input && mv $input.tar.gz $input && cd $input
|
||||||
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
||||||
GLACIER_INTEGRITY_CHECK
|
#GLACIER_INTEGRITY_CHECK
|
||||||
if [ "$?" != "0" ]; then
|
# if [ "$?" != "0" ]; then
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
tar -xf $input.tar.gz
|
tar -xf $input.tar.gz
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
|
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"
|
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
|
||||||
mkdir $input && mv $input.tar.gz $input && cd $input
|
mkdir $input && mv $input.tar.gz $input && cd $input
|
||||||
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
||||||
GLACIER_INTEGRITY_CHECK
|
#GLACIER_INTEGRITY_CHECK
|
||||||
if [ "$?" != "0" ]; then
|
# if [ "$?" != "0" ]; then
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
tar -xf $input.tar.gz
|
tar -xf $input.tar.gz
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz.\n" 1>&2
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
printf "$blue [ i ]$reset Verifying integrity of package...\n"
|
||||||
GLACIER_INTEGRITY_CHECK
|
#GLACIER_INTEGRITY_CHECK
|
||||||
if [ "$?" != "0" ]; then
|
# if [ "$?" != "0" ]; then
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
mv $input.tar.gz /var/cache/glacier
|
mv $input.tar.gz /var/cache/glacier
|
||||||
printf "\033[1;32m [ $check ] \033[m Operation completed.\n"
|
printf "\033[1;32m [ $check ] \033[m Operation completed.\n"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user