Skip to content

Commit 0e59344

Browse files
committedOct 31, 2016
Make sure and change to the script's directory.
1 parent 5a6ba07 commit 0e59344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎update_scripts/update_macosx.command

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#! /bin/bash
2-
latest_release=$(curl -s "https://api.github.com/repos/adafruit/micropython-adafruit-bundle/releases/latest")
2+
cd $(dirname $0)
3+
latest_release=$(curl -s "https://api.github.com/repos/adafruit/micropython-adafruit-bundle/releases/latest")
34
download_link=$(echo $latest_release | grep -o "\"browser_download_url\": \"[^\"]*" | cut -d \" -f 4)
45
tag=$(echo $latest_release | grep -o "\"tag_name\": \"[^\"]*" | cut -d \" -f 4)
56
current=$(head -n 1 VERSIONS.txt | tr -d '[:space:]')

0 commit comments

Comments
 (0)