Skip to content

Commit 05fe1af

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

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ 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)
97

10-
if [[ '$os' == 'Linux' ]]; then
8+
if [[ '$(uname)' == 'Linux' ]]; then
119
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
1210
echo
1311

@@ -22,7 +20,7 @@ while true; do
2220
break
2321

2422
elif
25-
[[ '$os' == 'Darwin' ]]; then
23+
[[ '$(uname)' == 'Darwin' ]]; then
2624
if brew update && brew upgrade && brew install git && brew install gh && brew install curl && brew install node && brew install npm; then
2725
echo
2826
break
@@ -32,7 +30,7 @@ while true; do
3230
echo
3331
break
3432

35-
elif [[ '$os' == 'CYGWIN' || 'os' ==* ]]; then
33+
elif [[ '$(uname)' == 'CYGWIN' || 'os' ==* ]]; then
3634
echo "CYGWIN is not yet supported"
3735
else
3836
exit

0 commit comments

Comments
 (0)