diff options
| author | Ralf Kistner <ralf@embarkmobile.com> | 2013-07-29 01:31:06 -0700 |
|---|---|---|
| committer | Ralf Kistner <ralf@embarkmobile.com> | 2013-07-29 01:31:06 -0700 |
| commit | 4ffdabc51590c0afe0f80ad5cce315945338a3f0 (patch) | |
| tree | a44271e76169fa1c51a677911aff3af999561048 | |
| parent | 74764f86a1847675200f82d5e8e747d45f47070c (diff) | |
| parent | 8f965b74c88ddce1372d0ee73bac6e3ea966c765 (diff) | |
Merge pull request #2 from tub/master
Fixing install script for OSX
| -rwxr-xr-x | install.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |
