aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-09-29 19:11:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-09-29 19:11:42 -0300
commit0651f62d718e18665eec0280fe05b670f7728a7a (patch)
tree3a165c46fa4f1dc66181d87e22b7cc6b7bca2d5d /lib
parent2c18c4f213d8081e4243e8f37007af93cddf4695 (diff)
downloadkeyringer-0651f62d718e18665eec0280fe05b670f7728a7a.tar.gz
keyringer-0651f62d718e18665eec0280fe05b670f7728a7a.tar.bz2
Ensure preferences file exists
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions2
1 files changed, 2 insertions, 0 deletions
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
}