Make sure and change to the script's directory.
This commit is contained in:
parent
5a6ba07557
commit
0e59344e91
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#! /bin/bash
|
||||
latest_release=$(curl -s "https://api.github.com/repos/adafruit/micropython-adafruit-bundle/releases/latest")
|
||||
cd $(dirname $0)
|
||||
latest_release=$(curl -s "https://api.github.com/repos/adafruit/micropython-adafruit-bundle/releases/latest")
|
||||
download_link=$(echo $latest_release | grep -o "\"browser_download_url\": \"[^\"]*" | cut -d \" -f 4)
|
||||
tag=$(echo $latest_release | grep -o "\"tag_name\": \"[^\"]*" | cut -d \" -f 4)
|
||||
current=$(head -n 1 VERSIONS.txt | tr -d '[:space:]')
|
||||
|
|
|
|||
Loading…
Reference in a new issue