git_auto_update: Added brackets for less ambiguity

dehydrated
Felix Stupp 5 years ago
parent 9a8996d69e
commit 0b388a7e9a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -20,7 +20,7 @@ fi
git fetch --tags > /dev/null;
TAG=$(git tag --list | grep "^$PREFIX" | sort -r | head -n 1);
if [ -z "$GPG_FINGERPRINT" ] || git verify-tag --raw "$TAG" 2>&1 | grep " VALIDSIG $GPG_FINGERPRINT " > /dev/null; then
if [ -z "$GPG_FINGERPRINT" ] || (git verify-tag --raw "$TAG" 2>&1 | grep " VALIDSIG $GPG_FINGERPRINT ") > /dev/null; then
git reset --hard;
git checkout -q "$TAG";
chown -R "$DEST_USER:$DEST_GROUP" .;

Loading…
Cancel
Save