]> git.deb.at Git - rhonda/impostor.git/commitdiff
Dockerfile: [[ -> [
authorminiduikboot <mini@duikbo.at>
Sun, 29 Jan 2023 21:57:05 +0000 (22:57 +0100)
committerminiduikboot <mini@duikbo.at>
Sun, 29 Jan 2023 21:57:05 +0000 (22:57 +0100)
[[ is a bash extension and is not supported by posix sh, throwing an
error. [ is supported and does enough

Dockerfile

index 080a1eafd68d28ed1a47f3e9ea449d1e82cdc8e3..34f9b04da064aa043d668a62c92a369a9db1895b 100644 (file)
@@ -30,7 +30,7 @@ RUN case "$TARGETARCH" in \
     arm)    NETCORE_PLATFORM='linux-arm';; \
     *) echo "unsupported architecture"; exit 1 ;; \
   esac && \
-  [[ $VERSIONSUFFIX = "none" ]] && VERSIONSUFFIX=; \
+  [ $VERSIONSUFFIX = "none" ] && VERSIONSUFFIX=; \
   dotnet publish -c release -o /app -r "$NETCORE_PLATFORM" -p:VersionSuffix="$VERSIONSUFFIX" --no-restore ./src/Impostor.Server/Impostor.Server.csproj
 
 # Final image.