We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a6ba07 commit 0e59344Copy full SHA for 0e59344
update_scripts/update_macosx.command
@@ -1,5 +1,6 @@
1
#! /bin/bash
2
-latest_release=$(curl -s "https://api.github.com/repos/adafruit/micropython-adafruit-bundle/releases/latest")
+cd $(dirname $0)
3
+latest_release=$(curl -s "https://api.github.com/repos/adafruit/micropython-adafruit-bundle/releases/latest")
4
download_link=$(echo $latest_release | grep -o "\"browser_download_url\": \"[^\"]*" | cut -d \" -f 4)
5
tag=$(echo $latest_release | grep -o "\"tag_name\": \"[^\"]*" | cut -d \" -f 4)
6
current=$(head -n 1 VERSIONS.txt | tr -d '[:space:]')
0 commit comments