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