From 447fc52078b7e9a78e1db3590161be16cec170a3 Mon Sep 17 00:00:00 2001 From: Matthias Dienstbier Date: Wed, 24 Mar 2010 18:43:01 +0100 Subject: fix returns and exits in subshells --- src/aif.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/aif.sh') diff --git a/src/aif.sh b/src/aif.sh index 2f9d31b..a64bb02 100755 --- a/src/aif.sh +++ b/src/aif.sh @@ -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 () -- cgit v1.2.3-54-g00ecf