Update glacier-cache-clear.sh

This commit is contained in:
everest 2022-04-20 19:40:25 +00:00 committed by GitHub
parent 6b3ee3f6e5
commit 1b446e7096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,10 @@
# Require the script to be run as root
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "[ X ] Please run Glacier as root."
printf "\033[1;31m [ $error ] \033[m Please run Glacier as root."
exit
fi
echo "[ i ] Clearing cache..."
printf "\033[1;34m [ i ] \033[m Clearing cache... "
cd /var/cache/glacier && rm *.tar.gz
echo "[ i ] Cache was cleared."
printf "\033[1;32m [ $check ] \033[m Cache cleared."