]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Ensure preferences file exists
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 29 Sep 2013 22:11:42 +0000 (19:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 29 Sep 2013 22:11:42 +0000 (19:11 -0300)
lib/keyringer/functions

index 0da1548c19139f15b9428ae13696008205d4a740..66a23df63a6220fe67bd22fae4e7d2b3658b896a 100755 (executable)
@@ -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
 }