From d6447146aaff9715b2097790e6c8c7cf78b40140 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 27 Jan 2022 01:19:08 -0300 Subject: [PATCH] Update cloneAndMake() --- scripts/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1f8187e..5baab13 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -5,9 +5,12 @@ cloneAndMake() { password=$(whiptail --passwordbox "Enter your password" 8 25 3>&1 1>&2 2>&3) echo "$password" | sudo -S bash -c "" > /dev/null 2>&1 fi + local TERM=ansi; whiptail --infobox "Downloading ${1}" 7 0 git clone "$2" - (cd "$1" || { echo "Couldn't cd into '$1'." 1>&2 && exit 1; }; echo "$password" | sudo make install) + + makeMsg=laptop && [[ -v LAPTOP ]] || makeMsg=install + (cd "$1" || { echo "Couldn't cd into '$1'." 1>&2 && exit 1; }; echo "$password" | sudo make "$makeMsg") } downloadAndInstallPackages() {