diff options
author | Alan Pearce | 2014-03-09 15:58:14 +0000 |
---|---|---|
committer | Alan Pearce | 2014-03-09 15:58:14 +0000 |
commit | d121a8e2253541e1f9606c31d27807d349409e3a (patch) | |
tree | 5bf2d48f9d34a225d48fbfe648b0b4a8f350facf | |
parent | 9094360d8c4f42f8f0a6a0475051877dc2c38fe5 (diff) | |
download | dotfiles-d121a8e2253541e1f9606c31d27807d349409e3a.tar.lz dotfiles-d121a8e2253541e1f9606c31d27807d349409e3a.tar.zst dotfiles-d121a8e2253541e1f9606c31d27807d349409e3a.zip |
Installer: create directories if not present
-rwxr-xr-x | install | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/install b/install index da30f8c..a433631 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 ]] |