fix: typo in variable assignement from expression

This commit is contained in:
Julien Oculi 2024-05-30 13:16:26 +02:00
parent 277e891b21
commit 4a68d0757d

View file

@ -1,5 +1,5 @@
# Get latest forgejo tag # Get latest forgejo tag
LATEST=curl -fsS https://codeberg.org/forgejo/forgejo/releases/latest | grep -o "[0-9].[0-9].[0-9]" | head -1 LATEST=$(curl -fsS https://codeberg.org/forgejo/forgejo/releases/latest | grep -o "[0-9].[0-9].[0-9]" | head -1)
# Check if already installed # Check if already installed
if [[ $(forgejo -v 2> /dev/null | grep -o "[0-9].[0-9].[0-9]" | head -1) != $LATEST ]]; then if [[ $(forgejo -v 2> /dev/null | grep -o "[0-9].[0-9].[0-9]" | head -1) != $LATEST ]]; then