fix update

This commit is contained in:
2024-07-27 17:38:37 +02:00
parent 384069260f
commit 8929e10dbf

View File

@@ -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"