From 11284b517946686b87e00c74ba37a566ae67a172 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 19 Jan 2017 00:51:53 +0100 Subject: [PATCH] Make add_dir.sh more tolerant of pre-existing installations. --- add_dir.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add_dir.sh b/add_dir.sh index 36bcf66..b8e04bd 100755 --- a/add_dir.sh +++ b/add_dir.sh @@ -13,7 +13,7 @@ link_files_in_dir () { [ $(basename "$file") != "." ] && \ [ $(basename "$file") != ".." ]; then dir=$(basename "$file") - mkdir "$dir" + mkdir -p "$dir" cd "$dir" link_files_in_dir "$srcdir/$dir" cd .. -- 2.30.2