git_auto_update: Improved comparism with GPG fingerprint

Configured grep to compare againg fixed strings, not regexp
dehydrated
Felix Stupp 5 years ago
parent f2b6e41645
commit e30121cae2
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -20,7 +20,7 @@ fi
git fetch --tags > /dev/null; git fetch --tags > /dev/null;
TAG=$(git tag --list | grep "^$PREFIX" | sort -r | head -n 1); 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 --fixed-strings " VALIDSIG $GPG_FINGERPRINT ") > /dev/null; then
git reset --hard; git reset --hard;
git checkout -q "$TAG"; git checkout -q "$TAG";
chown -R "$DEST_USER:$DEST_GROUP" .; chown -R "$DEST_USER:$DEST_GROUP" .;

Loading…
Cancel
Save