From 126653c941c3ed9020f7fe2476694bd1e2292dbb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 4 Jun 2022 08:38:01 +0200 Subject: [PATCH] Update updater.sh --- .github/workflows/updater.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index e85a874..7496249 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -66,15 +66,18 @@ echo "Handling asset at $asset_url" # Here we base the source file name upon a unique keyword in the assets url (admin vs. update) # Leave $src empty to ignore the asset case $asset_url in - *"/linux-amd64-filebrowser.tar.gz") + *"linux-amd64-filebrowser.tar.gz") src="amd64" ;; - *"/linux-arm64-filebrowser.tar.gz") + *"linux-arm64-filebrowser.tar.gz") src="arm64" ;; - *"/linux-armv7-filebrowser.tar.gz") + *"linux-armv7-filebrowser.tar.gz") src="armhf" ;; + *) + src="" + ;; esac # If $src is not empty, let's process the asset @@ -104,7 +107,7 @@ SOURCE_URL=$asset_url SOURCE_SUM=$checksum SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=$extension -SOURCE_IN_SUBDIR=true +SOURCE_IN_SUBDIR=false SOURCE_FILENAME= EOT echo "... conf/$src.src updated"