From 6b503b8984cf3c5848522d7dcb6ccc72939eedc7 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 16 Nov 2010 21:21:51 -0500 Subject: do not complain if the config directory already exists when creating it. --- lib/keyringer/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3