File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed
Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,34 @@ set -euxo pipefail #exit in case of errors
33
44# install dependencies
55while 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
1335done
1436echo
You can’t perform that action at this time.
0 commit comments