Skip to content
Snippets Groups Projects
Commit 7754d965 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

common.sh: loadConf() also sets the errexit and pipefail options

parent 7aae8077
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,10 @@ checkOutput() ...@@ -54,6 +54,10 @@ checkOutput()
loadConf() loadConf()
{ {
# Exit at any error
set -o errexit
set -o pipefail
if [ $# -gt 1 -a -f "$1" ]; then if [ $# -gt 1 -a -f "$1" ]; then
conf=$(readlink -f "$1") conf=$(readlink -f "$1")
elif [ -f "$PREFIX/"*.conf ]; then elif [ -f "$PREFIX/"*.conf ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment