aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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