Skip to content

Commit d427a69

Browse files
authored
Update install.sh
1 parent 5cdb3f0 commit d427a69

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

install.sh

Lines changed: 6 additions & 4 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-
if [[ "$(uname)" == "Linux" ]]; then
7+
8+
system=`uname`
9+
10+
if [[ $system == "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)" == "Darwin" ]]; then
25+
[[ $system == "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)" == "CYGWIN" || "$(uname)" ==* ]]; then
35+
elif [[ $system == "CYGWIN" || "$(uname)" ==* ]]; then
3436
echo "CYGWIN is not yet supported"
3537
else
3638
exit

0 commit comments

Comments
 (0)