From 5d2a7d5ce32959f19dddf3699335b4fc808a60b8 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 15 Oct 2025 19:42:09 +0000 Subject: [PATCH] Update install.sh --- install.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 45860b0..2cf90c7 100644 --- a/install.sh +++ b/install.sh @@ -1,13 +1,14 @@ #!/bin/bash -OS_TYPE = "$(uname -s)" -isLinux = ${OS_TYPE} == "Linux" -isMacOs = ${OS_TYPE} == "Darwin" -if [ ${isLinux} ]; then - echo "Running on Linux" -elif [ ${isMacOs} ]; then - echo "Running on MacOS" +OS_TYPE=$(uname -s) +isLinux=${OS_TYPE} == "Linux" +isMacOS=${OS_TYPE} == "Darwin" + +if [ "$isLinux" ]; then + echo "Running on Linux" +elif [ "$isMacOS" ]; then + echo "Running on macOS" else - echo "Unsupported OS family: $OS_TYPE" - exit 1 -fi \ No newline at end of file + echo "Unsupported OS family: $OS_TYPE" + exit 1 +fi