From: Silvio Rhatto Date: Sun, 29 Sep 2013 22:11:42 +0000 (-0300) Subject: Ensure preferences file exists X-Git-Tag: 0.2.6~8 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0651f62d718e18665eec0280fe05b670f7728a7a;p=keyringer.git Ensure preferences file exists --- diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 0da1548..66a23df 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -29,6 +29,8 @@ function keyringer_config_load_preferences { # Load custom keyring preferences if [ ! -z "$PREFERENCES" ] && [ -f "$PREFERENCES" ]; then source "$PREFERENCES" + elif [ ! -z "$PREFERENCES" ]; then + touch $PREFERENCES fi }