diff options
Diffstat (limited to 'lib/keyringer/completions/bash')
-rw-r--r-- | lib/keyringer/completions/bash/keyringer | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/keyringer/completions/bash/keyringer b/lib/keyringer/completions/bash/keyringer index 4459b34..e33977a 100644 --- a/lib/keyringer/completions/bash/keyringer +++ b/lib/keyringer/completions/bash/keyringer @@ -44,11 +44,16 @@ _keyringer() { # Initial options config="$HOME/.keyringer" - keyrings="`ls $config | sed -e 's/config//'`" + + # Check if we have initial configuration + if [ ! -d "$config" ]; then + return + fi # Process config source $config/config path="`eval echo '$'$instance`" + keyrings="`ls $config | sed -e 's/config//'`" # Available instances instances="`echo $keyrings | sed -e 's/ /|/'`" |