summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-18 12:43:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-18 12:43:29 -0300
commit2aa6f0127bad78d4dc3279f104c4660ee47855a5 (patch)
treefaa43c79d8461a859e389eabc5ea95ca9e7c02ee /lib
parent4d85c40d8ac5140835c5f75d513f886ae5910da9 (diff)
downloadkeyringer-2aa6f0127bad78d4dc3279f104c4660ee47855a5.tar.gz
keyringer-2aa6f0127bad78d4dc3279f104c4660ee47855a5.tar.bz2
Checking for $EDITOR at keyringer_set_env
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 24df5af..d474666 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -175,6 +175,11 @@ function keyringer_set_env {
echo "No recipient config was found"
exit 1
fi
+
+ if [ -z "$EDITOR" ]; then
+ echo "You have to set EDITOR env variable"
+ exit 1
+ fi
}
# Get a single argument