From 81d7a927e9955a1af0ac5e289e6978b955b7b098 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 24 Apr 2024 18:44:57 +0300 Subject: [PATCH] download-forgejo.bash: fix warning on SC2059 https://www.shellcheck.net/wiki/SC2059 --- bash/download-forgejo.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash/download-forgejo.bash b/bash/download-forgejo.bash index 2c2cd72..9293795 100755 --- a/bash/download-forgejo.bash +++ b/bash/download-forgejo.bash @@ -6,7 +6,7 @@ PLATFORM=linux-amd64 if [ -f "forgejo-$VERSION-$PLATFORM.asc" ]; then printf "Forĝejo signature already downloaded.\n" else - printf "Downloading Forĝejo $VERSION-$PLATFORM signature…\n" + printf "Downloading Forĝejo %b-%b signature…\n" "$VERSION" "$PLATFORM" curl -LO "https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-$PLATFORM.asc" fi @@ -14,7 +14,7 @@ fi if [ -f "forgejo-$VERSION-$PLATFORM" ]; then printf "Forĝejo already downloaded.\n" else - printf "Downloading Forĝejo $VERSION on $PLATFORM…\n" + printf "Downloading Forĝejo %b on %b\n" "$VERSION" "$PLATFORM" curl -LO "https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-$PLATFORM" fi @@ -23,7 +23,7 @@ printf "Verifying signature…\n" gpg --verify forgejo-$VERSION-$PLATFORM.asc printf "Final steps: \n\t 1. Place the binary where the systemd service expects it.\n\t \ -2. sudo chmod a+rx forgejo-$VERSION-$PLATFORM\n\t \ -3. sudo ln -sf forgejo-$VERSION-$PLATFORM gitea \n\t \ -4. sudo systemctl restart gitea" +2. sudo chmod a+rx forgejo-%b-%b\n\t \ +3. sudo ln -sf forgejo-%b-%b gitea \n\t \ +4. sudo systemctl restart gitea" "$VERSION" "$PLATFORM" "$VERSION" "$PLATFORM" echo