Glacier v3.2.1 - Toggle integrity checking
This commit is contained in:
20
src/glacier
20
src/glacier
@@ -25,13 +25,17 @@ get_pkg() {
|
||||
}
|
||||
|
||||
int_check() {
|
||||
printf "$blue[ i ]$reset Checking package integrity...\n"
|
||||
/usr/bin/glacier-integrity-check
|
||||
if [ "$?" != "0" ]; then
|
||||
printf "$red[ $error ]$reset Integrity check failed.\n"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$GLACIER_DO_INT_CHECK" = "true" ]; then
|
||||
printf "$blue[ i ]$reset Checking package integrity...\n"
|
||||
/usr/bin/glacier-integrity-check
|
||||
if [ "$?" != "0" ]; then
|
||||
printf "$red[ $error ]$reset Integrity check failed.\n"
|
||||
exit 1
|
||||
fi
|
||||
printf "$green[ $check ]$reset Integrity check passed.\n"
|
||||
else
|
||||
printf "$yellow[ ! ]$reset Skipping integrity check...\n"
|
||||
fi
|
||||
}
|
||||
|
||||
unpack_pkg() {
|
||||
@@ -113,7 +117,7 @@ clear_cache() {
|
||||
#
|
||||
|
||||
debug_info() {
|
||||
printf "$blue>> Glacier v3.2.0$reset\n"
|
||||
printf "$blue>> Glacier v3.2.1$reset\n"
|
||||
printf ">> Checking for valid download backend...\n"
|
||||
whereis wget
|
||||
whereis curl
|
||||
@@ -236,7 +240,7 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
-v|--version)
|
||||
printf "${blue}Glacier v3.2.0${reset}\n"
|
||||
printf "${blue}Glacier v3.2.1${reset}\n"
|
||||
exit 0
|
||||
;;
|
||||
-f|install)
|
||||
|
||||
Reference in New Issue
Block a user