diff options
author | Alan Pearce | 2014-03-15 11:24:53 +0000 |
---|---|---|
committer | Alan Pearce | 2014-03-15 11:24:53 +0000 |
commit | 7954d517f70f79ea3f916d5453b5d2fed47e1cad (patch) | |
tree | 6a61961b17ba753fbdd540e0f7dd324e88ca8071 /install | |
parent | 9094360d8c4f42f8f0a6a0475051877dc2c38fe5 (diff) | |
download | nixfiles-7954d517f70f79ea3f916d5453b5d2fed47e1cad.tar.lz nixfiles-7954d517f70f79ea3f916d5453b5d2fed47e1cad.tar.zst nixfiles-7954d517f70f79ea3f916d5453b5d2fed47e1cad.zip |
Installer: create directories for links if needed
Diffstat (limited to 'install')
-rwxr-xr-x | install | 5 |
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 ]] |