mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
fix update
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user