download-forgejo.bash: fix warning on SC2059

https://www.shellcheck.net/wiki/SC2059
This commit is contained in:
Aminda Suomalainen 2024-04-24 18:44:57 +03:00
parent 2a2241c968
commit 81d7a927e9
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -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