Fix more bugs

This commit is contained in:
Santiago Lo Coco 2024-04-07 10:29:55 +02:00
parent 683750f577
commit 193cfeda82
1 changed files with 3 additions and 3 deletions

View File

@ -2,15 +2,15 @@
cloneAndMake() { cloneAndMake() {
if [ -z "$password" ]; then if [ -z "$password" ]; then
read -s -p "Enter your password: " password read -s -p "Enter your password: " password
echo echo
fi fi
echo "Downloading '${1}'" echo "Downloading '${1}'"
git clone "$2" git clone "$2"
if [ -e "$1/Makefile" ]; then if [ -e "$1/Makefile" ]; then
(cd "$1" || { echo "Couldn't cd into '$1'." 1>&2 && exit 1; }; echo "$password" | sudo make install) (cd "$1" || { echo "Couldn't cd into '$1'." 1>&2 && exit 1; }; echo "$password" | sudo make install)
fi fi
} }