From 521dd9b38c2679700fd6ee55e0bf84aac2799c5c Mon Sep 17 00:00:00 2001 From: Gapodo Date: Tue, 6 Dec 2022 02:42:24 +0100 Subject: [PATCH] fix map script --- docker/map-binaries.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/map-binaries.sh b/docker/map-binaries.sh index 89b1e83c20..c70a1f4f33 100755 --- a/docker/map-binaries.sh +++ b/docker/map-binaries.sh @@ -18,10 +18,13 @@ fi OUTFILENAME="" if [[ "$RENAME" == "false" ]]; then OUTFILENAME="${FILEBASENAME}" -elif [["$RENAME" == "true" ]]; then - OUTFILENAME=gitea else - OUTFILENAME="${RENAME}" + # not using elif as busybox can't handle it... + if [["$RENAME" == "true" ]]; then + OUTFILENAME=gitea + else + OUTFILENAME="${RENAME}" + fi fi FILE_WIHTOUT_PLATFORM="${FILEBASENAME}-${FILEVERSION}"