Update cloneAndMake()
This commit is contained in:
parent
b5a09241db
commit
d6447146aa
|
@ -5,9 +5,12 @@ cloneAndMake() {
|
||||||
password=$(whiptail --passwordbox "Enter your password" 8 25 3>&1 1>&2 2>&3)
|
password=$(whiptail --passwordbox "Enter your password" 8 25 3>&1 1>&2 2>&3)
|
||||||
echo "$password" | sudo -S bash -c "" > /dev/null 2>&1
|
echo "$password" | sudo -S bash -c "" > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local TERM=ansi; whiptail --infobox "Downloading ${1}" 7 0
|
local TERM=ansi; whiptail --infobox "Downloading ${1}" 7 0
|
||||||
git clone "$2"
|
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() {
|
downloadAndInstallPackages() {
|
||||||
|
|
Loading…
Reference in New Issue