From: Christian Heller Date: Wed, 18 Jan 2017 23:51:53 +0000 (+0100) Subject: Make add_dir.sh more tolerant of pre-existing installations. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/pick_tasks?a=commitdiff_plain;h=11284b517946686b87e00c74ba37a566ae67a172;p=redo-blog Make add_dir.sh more tolerant of pre-existing installations. --- 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 ..