Skip to content

Commit 769c600

Browse files
authored
Update install.sh
1 parent ea1e3c4 commit 769c600

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ set -euxo pipefail #exit in case of errors
44
# install dependencies
55
while 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

0 commit comments

Comments
 (0)