Skip to content

Commit 3a5f0ae

Browse files
committed
further work on SHA256
1 parent b4237d2 commit 3a5f0ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitea-update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# A shell script to automatically update Gitea
3-
# Depends only on basic shell utilities (curl, cut, find, grep, sed, wget)
3+
# Depends only on basic shell utilities (curl, cut, find, grep, sed)
44
# Assumes use of systemd for Gitea start/stop
55

66

@@ -61,9 +61,9 @@ if [ $NEW_VER != $CUR_VER ]; then
6161
fi
6262
# Download the latest version of Gitea binary
6363
#wget -N https://github.com/go-gitea/gitea/releases/download/v$NEW_VER/gitea-$NEW_VER-$ARCH -P $DIR/bin/
64-
( cd $DIR/bin && curl -O -L $URL/v$NEW_VER/gitea-$NEW_VER-$ARCH )
64+
( cd $DIR/bin && curl -s -O -L $URL/v$NEW_VER/gitea-$NEW_VER-$ARCH )
6565
# Verify the checksum of the latest Gitea binary
66-
SHA_CHECK=$(cd $DIR/bin && curl -L $URL/v$NEW_VER/gitea-$NEW_VER-$ARCH.sha256 | sha256sum -c | cut -d " " -f 2)
66+
SHA_CHECK=$(cd $DIR/bin && curl -s -L $URL/v$NEW_VER/gitea-$NEW_VER-$ARCH.sha256 | sha256sum -c | cut -d " " -f 2)
6767
if [ $SHA_CHECK = "OK" ]; then
6868
if [ $DEBUG -eq 1 ]; then
6969
echo "SHA256 verified"

0 commit comments

Comments
 (0)