Update glacier
This commit is contained in:
parent
7caa78f3dd
commit
de61a35eef
@ -47,7 +47,7 @@ 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"
|
||||||
shasum $input.tar.gz
|
sha256sum $input.tar.gz
|
||||||
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
|
||||||
@ -86,7 +86,7 @@ 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"
|
||||||
shasum $input.tar.gz
|
sha256sum $input.tar.gz
|
||||||
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
|
||||||
@ -124,7 +124,7 @@ 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"
|
||||||
shasum $input.tar.gz
|
sha256sum $input.tar.gz
|
||||||
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
|
||||||
@ -168,7 +168,7 @@ 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"
|
||||||
shasum $input.tar.gz
|
sha256sum $input.tar.gz
|
||||||
mv $input.tar.gz /var/cache/glacier
|
mv $input.tar.gz /var/cache/glacier
|
||||||
printf "\033[1;32m [ $check ] \033[m Operation completed."
|
printf "\033[1;32m [ $check ] \033[m Operation completed."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user