Update install.sh
This commit is contained in:
1 parent
5b58cde897
commit
60b08772ce
1 file changed
+5
-5
+5
-5
@@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
OS_TYPE = $(uname -s)
|
||||
isLinux = "$OS_TYPE" == "Linux"
|
||||
isMacOs = "$OS_TYPE" == "Darwin"
|
||||
if [ $isLinux ]; then
|
||||
OS_TYPE = "$(uname -s)"
|
||||
isLinux = ${OS_TYPE} == "Linux"
|
||||
isMacOs = ${OS_TYPE} == "Darwin"
|
||||
if [ ${isLinux} ]; then
|
||||
echo "Running on Linux"
|
||||
elif [ $isMacOs ]; then
|
||||
elif [ ${isMacOs} ]; then
|
||||
echo "Running on MacOS"
|
||||
else
|
||||
echo "Unsupported OS family: $OS_TYPE"
|
||||
|
||||
Reference in new issue
Block a user