summary refs log tree commit diff stats
path: root/install
diff options
context:
space:
mode:
authorAlan Pearce2014-02-08 20:36:09 +0000
committerAlan Pearce2014-02-08 20:36:09 +0000
commit6f4c1e62e76d861f672d270348c5ef4f2cfec8e0 (patch)
tree04078011bad5792e511cde2f0d63607cb7894d12 /install
parent367699e5b52629fa7da3a1faec5a54a5241d96a4 (diff)
downloadnixfiles-6f4c1e62e76d861f672d270348c5ef4f2cfec8e0.tar.lz
nixfiles-6f4c1e62e76d861f672d270348c5ef4f2cfec8e0.tar.zst
nixfiles-6f4c1e62e76d861f672d270348c5ef4f2cfec8e0.zip
Installer: Create ~/projects/dotfiles if missing
Diffstat (limited to 'install')
-rwxr-xr-xinstall5
1 files changed, 5 insertions, 0 deletions
diff --git a/install b/install
index 85dd7a7b..da30f8cb 100755
--- a/install
+++ b/install
@@ -5,6 +5,11 @@ pushd $HOME
 
 setopt EXTENDED_GLOB
 
+if [[ ! -d $target ]]
+then
+	mkdir -pv $target
+fi
+
 if [[ -d ~/Library/LaunchAgents ]]
 then
 	ln -sf $target/launchagents/* ~/Library/LaunchAgents