Update glacier

This commit is contained in:
everest 2022-06-09 14:05:35 +00:00 committed by GitHub
parent b4749dc30b
commit 749b77dcd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,13 +212,13 @@ while [[ $# -gt 0 ]]; do
exit exit
fi fi
printf "\033[1;34m [ i ] \033[m Clearing cache... " printf "\033[1;34m [ i ] \033[m Clearing cache...\n"
cd /var/cache/glacier && rm -rf * cd /var/cache/glacier && rm -rf *
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
printf "\033[1;31m [ $error ] \033[m Some items could not be cleared.\n" 1>&2 printf "\033[1;31m [ $error ] \033[m Some items could not be cleared.\n" 1>&2
exit 1 exit 1
fi fi
printf "\033[1;32m [ $check ] \033[m Cache cleared." printf "\033[1;32m [ $check ] \033[m Cache cleared.\n"
exit 0 exit 0
;; ;;
-*|--*) -*|--*)