mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-25 20:59:21 +01:00
download-forgejo.bash: fix warning on SC2059
https://www.shellcheck.net/wiki/SC2059
This commit is contained in:
parent
2a2241c968
commit
81d7a927e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user