aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-26 12:32:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-02-26 12:32:05 -0300
commit67adc630f06c7779937a410f1d5925ad51f6e017 (patch)
tree4e4e9b1b8812c5ead1e0d8e78eadc6c0470b0f5f /lib
parent27b131115b3e983575cc2f64c695d2269baa15e6 (diff)
downloadkeyringer-67adc630f06c7779937a410f1d5925ad51f6e017.tar.gz
keyringer-67adc630f06c7779937a410f1d5925ad51f6e017.tar.bz2
Check return status (closes #7)
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 129ec0e..1d29157 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -74,6 +74,10 @@ function keyringer_exec {
# Dispatch
if keyringer_has_action "$action"; then
"$ACTIONS/$action" "$basedir" $*
+ err="$?"
+ if [ "$err" != "0" ]; then
+ exit "$err"
+ fi
fi
}