From b4853963ece33883155fdbff4359bc1c1af0e242 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 21 Jan 2012 10:06:05 -0500 Subject: [PATCH] made the mcd function create parent directories if they're missing. --- scripts/core/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 2.34.1