Abort if a command fails

With this shell attribute, the script will abort if any of the executed commands exits with a non-zero status.
This commit is contained in:
2021-08-11 22:32:31 +02:00
parent c029215765
commit 22f220cd2f

View File

@@ -1,2 +1,4 @@
#!/bin/bash
### Setup Fedora ###
# Abort on errors
set -e