diff setup.sh @ 91:9f3d2d765a0f

Make sure we create parent directories
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Apr 2018 17:29:52 +0100
parents b989099cde9f
children c3320f06d412
line wrap: on
line diff
--- a/setup.sh	Mon Apr 02 17:20:47 2018 +0100
+++ b/setup.sh	Mon Apr 02 17:29:52 2018 +0100
@@ -8,7 +8,7 @@
 	fi
 	parent_dir=$(dirname "$2")
 	if [ ! -d "$parent_dir" ]; then
-		mkdir "$parent_dir"
+		mkdir -p "$parent_dir"
 	fi
 	if [ ! -e $2 ]; then
 		ln -s $SOURCEFILE $2