git_auto_update: update.sh: Moved set command to beginning

dehydrated
Felix Stupp 4 years ago
parent 44b5fdcbb0
commit 6c1beee210
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail;
readonly REPO={{ repo | quote }};
readonly DEST={{ dest | quote }};
readonly DEST_USER={{ owner | quote }};
@ -7,8 +9,6 @@ readonly DEST_GROUP={{ group | quote }};
readonly PREFIX={{ tag_prefix | quote }};
readonly GPG_FINGERPRINT={{ gpg_fingerprint | quote }};
set -euo pipefail;
cd "$DEST";
if [ ! -d .git ]; then

Loading…
Cancel
Save