summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-03-09 15:58:14 +0000
committerAlan Pearce2014-03-09 15:58:14 +0000
commitd121a8e2253541e1f9606c31d27807d349409e3a (patch)
tree5bf2d48f9d34a225d48fbfe648b0b4a8f350facf
parent9094360d8c4f42f8f0a6a0475051877dc2c38fe5 (diff)
downloadnixfiles-d121a8e2253541e1f9606c31d27807d349409e3a.tar.lz
nixfiles-d121a8e2253541e1f9606c31d27807d349409e3a.tar.zst
nixfiles-d121a8e2253541e1f9606c31d27807d349409e3a.zip
Installer: create directories if not present
-rwxr-xr-xinstall5
1 files changed, 5 insertions, 0 deletions
diff --git a/install b/install
index da30f8cb..a433631a 100755
--- a/install
+++ b/install
@@ -21,6 +21,11 @@ then
 fi
 
 install-dot () {
+	if [[ ! -d $1 ]]
+	then
+		mkdir $1
+	fi
+
 	for f in $@[2,-1]
 	do
 		if [[ ! -e $1$f:t ]]