diff options
author | Matthias Dienstbier <mdienstbier@googlemail.com> | 2010-03-24 18:43:01 +0100 |
---|---|---|
committer | Matthias Dienstbier <mdienstbier@googlemail.com> | 2010-03-24 18:43:01 +0100 |
commit | 447fc52078b7e9a78e1db3590161be16cec170a3 (patch) | |
tree | dc8cb857c79978980f509a0a86f3d5a498e2384b /src/aif.sh | |
parent | 47fbd4531a556e62be50b12f3376e73e9caaa4c7 (diff) |
fix returns and exits in subshells
Diffstat (limited to 'src/aif.sh')
-rwxr-xr-x | src/aif.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,12 +16,12 @@ export LC_COLLATE=C # for consistent sorting behavior ###### Early bootstrap ###### # load the lib-ui, it is one we need everywhere so we must load it early. -source $LIB_CORE/libs/lib-ui.sh || ( echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-ui.sh" >&2 && exit 2) +source $LIB_CORE/libs/lib-ui.sh || { echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-ui.sh" >&2 ; exit 2; } ui_init # load the lib-flowcontrol. we also need some of it's functions early (like usage()). -source $LIB_CORE/libs/lib-flowcontrol.sh || ( echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-flowcontrol.sh" >&2 && exit 2) +source $LIB_CORE/libs/lib-flowcontrol.sh || { echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-flowcontrol.sh" >&2 ; exit 2; } # lib-misc. we need it early, at least for check_is_in whis is used by the debug function. -source $LIB_CORE/libs/lib-misc.sh || ( echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-misc.sh" >&2 && exit 2) +source $LIB_CORE/libs/lib-misc.sh || { echo "Something went wrong while sourcing library $LIB_CORE/libs/lib-misc.sh" >&2 ; exit 2; } # default function to process additional arguments. can be overridden by procedures. process_args () |