Update glacier
This commit is contained in:
parent
b4749dc30b
commit
749b77dcd8
@ -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
|
||||||
;;
|
;;
|
||||||
-*|--*)
|
-*|--*)
|
||||||
|
Loading…
Reference in New Issue
Block a user