]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Check if keyring exists
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 14 Mar 2014 13:28:09 +0000 (10:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 14 Mar 2014 13:28:09 +0000 (10:28 -0300)
keyringer

index 0930637a2739546b81e55585319a064010babb80..e57dfd00115c8bc27a0588ddf3b8bad2e59a4121 100755 (executable)
--- 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