From 532b2ab6403438d740f6db5858c54a43d7ebbb8b Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 19 Jan 2022 00:44:04 -0300 Subject: [PATCH] Update cloneAndMake() --- scripts/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index b6dd213..718b037 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,9 +1,13 @@ #!/usr/bin/env bash cloneAndMake() { + if [ -z $password ]; then + password=$(displayDialogBox --passwordbox "Enter your password" VALUES 3>&1 1>&2 2>&3) + echo "$password" | sudo -S bash -c "" > /dev/null 2>&1 + fi displayDialogBox --infobox "Downloading ${1}" VALUES git clone "$2" 2>&1 | debug - (cd "$1" || { echo "Couldn't cd into '$1'." 1>&2 && exit 1; }; sudo make install 2>&1 | debug) + (cd "$1" || { echo "Couldn't cd into '$1'." 1>&2 && exit 1; }; echo "$password" | sudo make install 2>&1 | debug) } downloadAndInstallPackages() {