diff --git a/run-wrapper/update b/run-wrapper/update index 0b49dde9..11064dc3 100755 --- a/run-wrapper/update +++ b/run-wrapper/update @@ -6,7 +6,7 @@ set -o pipefail SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) # 💀 -LATEST=$(curl "https://api.github.com/repos/usatiuk/dhfs/actions/runs?branch=main&status=completed&per_page=1" | tr -d "[:space:]" | sed -En "s/.*\[{\"id\":([0-9]*).*/\1/p") +LATEST=$(curl "https://api.github.com/repos/usatiuk/dhfs/actions/runs?branch=main&status=completed&per_page=1" | tr -d "[:space:]" | sed -en "s/.*\[\{\"id\":([0-9]*).*/\1/p") echo Latest: $LATEST @@ -23,12 +23,12 @@ echo Downloading... cd "$SCRIPT_DIR" -rm "Run wrapper.zip" || true +rm "Run wrapper.tar.gz" || true rm -rf "dhfs" || true -wget https://nightly.link/usatiuk/dhfs/actions/runs/$LATEST/Run%20wrapper.zip +wget https://nightly.link/usatiuk/dhfs/actions/runs/$LATEST/Run%20wrapper.tar.gz -unzip "Run wrapper.zip" +tar xvf "Run wrapper.tar.gz" rm -rf "DHFS Package" rm -rf "Webui"