From: Chris Koeritz Date: Sat, 21 Jan 2012 15:06:05 +0000 (-0500) Subject: made the mcd function create parent directories if they're missing. X-Git-Tag: 2.140.90~1656^2~29 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=b4853963ece33883155fdbff4359bc1c1af0e242;p=feisty_meow.git made the mcd function create parent directories if they're missing. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 388aa412..bf92a58d 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -18,7 +18,7 @@ function chowngrp { # makes a directory of the name specified and then tries to change the # current directory to that directory. function mcd { - if [ ! -d "$1" ]; then mkdir "$1"; fi + if [ ! -d "$1" ]; then mkdir -p "$1"; fi cd "$1" }