diff --git a/assets/shell/create_certificate.sh b/assets/shell/create_certificate.sh index 29f3dba..8838853 100755 --- a/assets/shell/create_certificate.sh +++ b/assets/shell/create_certificate.sh @@ -9,24 +9,24 @@ CRS="\e[0m" ### DEPENDENCY CHECK -bin="openssl" +bin="openssl" echo -e "\n${CYN}Dependency and Privilege Check running...${CRS}\n" if (( $(id -u) == 0 )); then echo -e "${GRN}Privilege check passed...${CRS}\n" -else +else echo -e "${RED}Privilege check failed... Please run script with sudo or as root!${CRS}\n" exit 1 fi if command -v "$bin" >/dev/null 2>&1; then echo -e "${GRN}Dependency check passed...${CRS}\n" - + else echo -e "${YEL}$bin is not installed.${CRS}\n" - + while true; do read -p "Do you wish to install $bin via APT? (Y/n) : " install @@ -34,7 +34,7 @@ else touch /tmp/lomesInstallLog.txt sudo apt update && sudo apt install --install-suggests -y $bin >/tmp/lomesInstallLog.txt echo -e "\n${GRN}$bin installed. Proceeding...${CRS}\n" - break + break elif [[ "$install" == "n" || "$install" = "N" ]]; then echo -e "\n${RED}Dependencies not installed... Exiting!${CRS}\n"