File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ set -euxo pipefail #exit in case of errors
44# install dependencies
55while true ; do
66 echo -e ' \e[91mPLEASE INPUT SUDO PASSWORD WHEN PROMPTED OTHERWISE TERMINAL WILL CLOSE SCRIPT\e[39m'
7+
8+ os=$( uname)
79
8- if [ $( uname ) == Linux ]; then
10+ if [[ ' $os ' == ' Linux' ] ]; then
911 echo -e " \xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
1012 echo
1113
@@ -20,7 +22,7 @@ while true; do
2022 break
2123
2224 elif
23- [ $( uname -s ) == Darwin ]; then
25+ [[ ' $os ' == ' Darwin' ] ]; then
2426 if brew update && brew upgrade && brew install git && brew install gh && brew install curl && brew install node && brew install npm; then
2527 echo
2628 break
@@ -30,7 +32,7 @@ while true; do
3032 echo
3133 break
3234
33- elif [ $( uname -s ) == CYGWIN || $( uname -s ) == * ]; then
35+ elif [[ ' $os ' == ' CYGWIN' || ' os ' == * ] ]; then
3436 echo " CYGWIN is not yet supported"
3537 else
3638 exit
You can’t perform that action at this time.
0 commit comments