diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-14 10:28:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-14 10:28:09 -0300 |
commit | c03461f7ee7308d89b45c495c85512362e36433b (patch) | |
tree | 3b760de7fb5815300d66e21b03fbeedc1d835171 | |
parent | 66812bcf7655bf22aafe58d8d60c96a03114bf0b (diff) | |
download | keyringer-c03461f7ee7308d89b45c495c85512362e36433b.tar.gz keyringer-c03461f7ee7308d89b45c495c85512362e36433b.tar.bz2 |
Check if keyring exists
-rwxr-xr-x | keyringer | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |