Update glacier-cache.sh
This commit is contained in:
parent
6048a99fb2
commit
1188467cd0
@ -13,8 +13,8 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\033[1;34m [ ? ] \033[m Enter package name: " && read input
|
printf "\033[1;34m [ ? ] \033[m Enter package name: " && read input
|
||||||
printf "\033[1;34m [ i ] \033[m Caching $input.tar.gz... "
|
printf "\033[1;34m [ i ] \033[m Caching $input.tar.gz...\n"
|
||||||
printf "Checking world... " && wget https://github.com/everest-linux/glacier-pkgs/raw/main/world/$input.tar.gz
|
printf "Checking world... " && wget https://github.com/everest-linux/glacier-pkgs/raw/main/world/$input.tar.gz -q --show-progress
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
printf "\033[1;31m [ $error ] \033[m Package not found. " 1>&2
|
printf "\033[1;31m [ $error ] \033[m Package not found. " 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user