aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-18 14:03:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-18 14:03:22 -0300
commit3025cd9835752866b43aee6a616ce6c7bfb6f71c (patch)
treef0257d704f051f1fbd6c14e3e1a607f497147142
parent352f37e26870df77af9cbad07774d4e8a19b81ff (diff)
downloadkeyringer-3025cd9835752866b43aee6a616ce6c7bfb6f71c.tar.gz
keyringer-3025cd9835752866b43aee6a616ce6c7bfb6f71c.tar.bz2
Automatically run keyringer_set_env just for actions
-rw-r--r--lib/keyringer/functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 4ee1ead..c78b9d3 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -250,4 +250,6 @@ function keyringer_action_usage {
}
# Setup environment
-keyringer_set_env $*
+if [ "`basename $0`" != "keyringer" ]; then
+ keyringer_set_env $*
+fi