Skip to content

Commit 41792cf

Browse files
committed
Ensure the arduino-cli is installed in a simple and known location
1 parent d0af4f4 commit 41792cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ PACKAGE_URL := https://dl.espressif.com/dl/package_esp32_index.json
2020

2121
ARDUINO_URL := https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh
2222
bin/arduino-cli: /usr/bin/curl
23-
curl -fsSL $(ARDUINO_URL) | sh
23+
mkdir -p ~/bin
24+
curl -fsSL $(ARDUINO_URL) | BINDIR=~/bin sh
2425

2526
.PHONY: $(BOARD_FILENAME_SLUG)
2627
$(BOARD_FILENAME_SLUG): bin/arduino-cli

0 commit comments

Comments
 (0)