aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkeyringer6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyringer b/keyringer
index 0930637..e57dfd0 100755
--- a/keyringer
+++ b/keyringer
@@ -161,6 +161,12 @@ fi
# Load functions
source "$LIB" || exit 1
+# Check if keyring exist
+if [ ! -f "$CONFIG_BASE/$KEYRING" ]; then
+ echo "No such keyring $KEYRING"
+ exit 1
+fi
+
# Setup main configuration and load preferences
keyringer_config_load