Skip to content

Commit 6ddaedd

Browse files
authored
Merge pull request #2 from badging/fixes
Fixed Mac deps install configs
2 parents c22db7b + 6e4f4f2 commit 6ddaedd

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

install.sh

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,34 @@ set -euxo pipefail #exit in case of errors
33

44
# install dependencies
55
while true; do
6-
if sudo apt update && sudo apt upgrade -y && sudo apt install -y git && sudo apt install -y gh && sudo apt install -y curl && sudo apt install -y nodejs && sudo apt install -y npm; then
6+
echo -e '\e[91mPLEASE INPUT SUDO PASSWORD WHEN PROMPTED OTHERWISE TERMINAL WILL CLOSE SCRIPT\e[39m'
7+
8+
if [ $(uname -s) == Linux ]; then
9+
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
10+
echo
11+
if sudo apt update && sudo apt upgrade -y && sudo apt install -y git && sudo apt install -y gh && sudo apt install -y curl && sudo apt install -y nodejs && sudo apt install -y npm; then
12+
echo
13+
break
14+
else
15+
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
16+
exit 1
17+
fi
18+
echo
19+
break
20+
elif
21+
[ $(uname -s) == Darwin ]; then
22+
if brew update && brew upgrade && brew install git && brew install gh && brew install curl && brew install node && brew install npm; then
23+
echo
24+
break
25+
else
26+
exit 1
27+
fi
728
echo
829
break
30+
elif [ $(uname -s) == CYGWIN || $(uname -s) ==* ]; then
31+
echo "CYGWIN is not yet supported"
932
else
10-
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
11-
exit 1
33+
exit
1234
fi
1335
done
1436
echo

0 commit comments

Comments
 (0)