X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/blobdiff_plain/0caeb0ccee34197c82e37f7a48c843e991c5118e..d1b143f4912ab29f4578a7139a877ee2ae8e036e:/setup.sh diff --git a/setup.sh b/setup.sh index ed31371..ed29c3e 100755 --- a/setup.sh +++ b/setup.sh @@ -3,7 +3,7 @@ # # Bash script an easy setup of NextcloudBackup.sh and NextcloudRestore.sh # -# Version 2.2.0 +# Version 2.3.0 # # Usage: # - call the setup.sh script @@ -19,6 +19,9 @@ # However, you should always check the backup/restore scripts BEFORE executing these! # +# Make sure the script exits when any command fails +set -Eeuo pipefail + # # Pre defined variables # @@ -86,7 +89,7 @@ occ_get datadirectory if [ $? -ne 0 ]; then echo "Error calling OCC: Please check if the information provided was correct." - echo "ABORTING!" + echo "ABORTING!" echo "No file has been altered." exit 1 fi