]> gitweb.fluxo.info Git - keyringer.git/commitdiff
do not complain if the config directory already exists when creating it.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 17 Nov 2010 02:21:51 +0000 (21:21 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 17 Nov 2010 02:21:51 +0000 (21:21 -0500)
lib/keyringer/functions

index c78b9d3103b37de84e498b155dc6318e49f438f4..5c4b5da8ea169db63dfc89c051bf68140501927c 100644 (file)
@@ -14,7 +14,7 @@ function keyringer_config_load {
 
   if [ ! -e "$CONFIG" ]; then
     echo "Creating $CONFIG..."
-    mkdir `dirname $CONFIG`
+    mkdir -p `dirname $CONFIG`
     touch $CONFIG
     chmod 600 $CONFIG
     echo "# Keyringer config file." > $CONFIG