Skip to content

Commit a048e02

Browse files
committed
refactor(remote-backup.sh): set pipefail option and add more comments.
We don't use pipefail here and it was added for consistency and for future. No functional changes.
1 parent 0a66856 commit a048e02

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vagrant/provisioning/roles/mystamps-backup/templates/remote-backup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
#!/bin/bash
22

3+
# Treat unset variables and parameters as an error when performing parameter expansion
34
set -o nounset
5+
6+
# Exit immediately if command returns a non-zero status
47
set -o errexit
58

9+
# Return value of a pipeline is the value of the last command to exit with a non-zero status
10+
set -o pipefail
11+
12+
613
UPLOADS_DST='{{ uploads_target_url }}'
714
MYSQL_BACKUPS_DST='{{ mysql_backups_target_url }}'
815
PASSPHRASE='{{ gpg_passphrase }}'

0 commit comments

Comments
 (0)