From 8f965b74c88ddce1372d0ee73bac6e3ea966c765 Mon Sep 17 00:00:00 2001 From: Toby Cole Date: Sun, 28 Jul 2013 21:06:17 +0100 Subject: Fixing install script for OSx --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b5aea1d..277593e 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,12 @@ #!/bin/bash -HARDWARE=~/Arduino/hardware +if [[ "$OSTYPE" == "linux-gnu" ]]; then + HARDWARE=~/Arduino/hardware +elif [[ "$OSTYPE" == "darwin"* ]]; then + HARDWARE=~/Documents/Arduino/hardware +else + echo "OS not supported in install script, manually symlink or copy arcore to your Arduino IDE's hardware folder." + exit +fi TARGET=$HARDWARE/arcore mkdir -p $HARDWARE if [[ -d "$TARGET" ]]; then -- cgit v1.2.3