From 65662a51e7650bcc2c57e31d74bcec92a2ba5086 Mon Sep 17 00:00:00 2001 From: everest Date: Wed, 20 Apr 2022 19:03:59 +0000 Subject: [PATCH] Update glacier-install.sh --- scripts/glacier-install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/glacier-install.sh b/scripts/glacier-install.sh index 42fa90e..694efd5 100644 --- a/scripts/glacier-install.sh +++ b/scripts/glacier-install.sh @@ -21,18 +21,18 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then exit fi -echo "\033[1;34m [ ? ] \033[m Enter package name:" && read input -echo "\033[1;34m [ i ] \033[m Installing $input.tar.gz" -echo "Checking world..." && wget https://github.com/everest-linux/glacier-pkgs/raw/main/world/$input.tar.gz +printf "\033[1;34m [ ? ] \033[m Enter package name:" && read input +printf "\033[1;34m [ i ] \033[m Installing $input.tar.gz" +printf "Checking world..." && wget https://github.com/everest-linux/glacier-pkgs/raw/main/world/$input.tar.gz if [ "$?" != "0" ]; then - echo "\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 fi -echo "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz..." +printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz..." mkdir -v $input && mv -v $input.tar.gz $input && cd $input tar -xvf $input.tar.gz if [ "$?" != "0" ]; then - echo "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz" 1>&2 + printf "\033[1;31m [ $error ] \033[m Could not unpack $input.tar.gz" 1>&2 exit 1 fi chmod +x INSTALL.sh @@ -40,8 +40,8 @@ chmod +x $input.ts.sh echo "\033[1;34m [ i ] \033[m Executing installation instructions..." ./INSTALL.sh # Actually executes installation script ./$input.ts.sh -echo "\033[1;34m [ i ] \033[m Cleaning up..." # Status message +printf "\033[1;34m [ i ] \033[m Cleaning up..." # Status message mv -v $input-pkginfo.json /etc/glacier/pkginfo cd .. rm -rvf $input -echo "\033[1;32m [ $check ] \033[m Operation completed." +printf "\033[1;32m [ $check ] \033[m Operation completed."