summaryrefslogtreecommitdiff
path: root/src/aif.sh
diff options
context:
space:
mode:
authorMatthias Dienstbier <mdienstbier@googlemail.com>2010-03-24 18:43:01 +0100
committerMatthias Dienstbier <mdienstbier@googlemail.com>2010-03-24 18:43:01 +0100
commit447fc52078b7e9a78e1db3590161be16cec170a3 (patch)
treedc8cb857c79978980f509a0a86f3d5a498e2384b /src/aif.sh
parent47fbd4531a556e62be50b12f3376e73e9caaa4c7 (diff)
fix returns and exits in subshells
Diffstat (limited to 'src/aif.sh')
-rwxr-xr-xsrc/aif.sh6
1 files changed, 3 insertions, 3 deletions
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 ()