From: Daniel Kahn Gillmor Date: Wed, 17 Nov 2010 02:21:51 +0000 (-0500) Subject: do not complain if the config directory already exists when creating it. X-Git-Tag: 0.2.1~109^2~4 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6b503b8984cf3c5848522d7dcb6ccc72939eedc7;p=keyringer.git do not complain if the config directory already exists when creating it. --- diff --git a/lib/keyringer/functions b/lib/keyringer/functions index c78b9d3..5c4b5da 100644 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -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