From 5c675d877df810b28d8f093261e8240ec5e6640f Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Wed, 16 Aug 2017 18:01:19 -0700 Subject: [PATCH] Replaced kernel with uname --- install.sh | 2 +- uninstall.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 99bbda1..5639e5f 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -if [ $kernel == "Darwin" ]; then +if [ $(uname) == "Darwin" ]; then brew install ant brew install jsoncpp else diff --git a/uninstall.sh b/uninstall.sh index fed60d4..407933e 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,8 +1,8 @@ -if [ $kernel == "Darwin" ]; then - sudo apt-get remove --purge libjsoncpp-dev -else +if [ $(uname) == "Darwin" ]; then brew uninstall jsoncpp brew uninstall ant +else + sudo apt-get remove --purge libjsoncpp-dev fi cd ../