summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-03-15 11:24:53 +0000
committerAlan Pearce2014-03-15 11:24:53 +0000
commit7954d517f70f79ea3f916d5453b5d2fed47e1cad (patch)
tree6a61961b17ba753fbdd540e0f7dd324e88ca8071
parent9094360d8c4f42f8f0a6a0475051877dc2c38fe5 (diff)
downloadnixfiles-7954d517f70f79ea3f916d5453b5d2fed47e1cad.tar.lz
nixfiles-7954d517f70f79ea3f916d5453b5d2fed47e1cad.tar.zst
nixfiles-7954d517f70f79ea3f916d5453b5d2fed47e1cad.zip
Installer: create directories for links if needed
-rwxr-xr-xinstall5
1 files changed, 5 insertions, 0 deletions
diff --git a/install b/install
index da30f8cb..32a4f26f 100755
--- a/install
+++ b/install
@@ -21,6 +21,11 @@ then
 fi
 
 install-dot () {
+	if [[ "$1" != . && ! -d $1 ]]
+	then
+		mkdir $1
+	fi
+
 	for f in $@[2,-1]
 	do
 		if [[ ! -e $1$f:t ]]