git_auto_update: Fixed check if reload was successful

dehydrated
Felix Stupp 5 years ago
parent 4445a53b28
commit 665b6710aa
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -24,7 +24,7 @@ if [ -z "$GPG_FINGERPRINT" ] || git verify-tag --raw "$TAG" 2>&1 | grep " VALIDS
git reset --hard;
git checkout -q "$TAG";
chown -R "$DEST_USER:$DEST_GROUP" .;
if sh -c {{ reload_command | default('') | quote }}; then
if ! sh -c {{ reload_command | default('') | quote }}; then
echo "Failed during reload" >&2;
exit 2;
fi

Loading…
Cancel
Save