Skip to content

Commit 22625b4

Browse files
Taskfile: fix setup:examples:local on mac (#508)
1 parent da00234 commit 22625b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Taskfile.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ tasks:
210210
cmds:
211211
- |
212212
set -e
213-
DEST_PATH="$HOME/.config/arduino-app-cli/"
213+
DEST_PATH=$(case "$(uname)" in
214+
Darwin) echo "$HOME/Library/Application Support/arduino-app-cli/" ;;
215+
Linux) echo "$HOME/.config/arduino-app-cli/" ;;
216+
*) echo "$AppData/arduino-app-cli/" ;;
217+
esac)
214218
TMP_PATH="$(mktemp -d)"
215219
216220
echo "Cloning examples into temporary directory ${TMP_PATH}..."

0 commit comments

Comments
 (0)