summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2015-07-05 22:34:23 -0400
committerJune McEnroe <june@causal.agency>2015-07-05 22:34:23 -0400
commit1a6e1fb31663bc70b44df3bed52350be844b7e1a (patch)
treed9205a80beedd80a1275979532fa45b19f608dc9
parentAdd license to readme (diff)
downloadsrc-1a6e1fb31663bc70b44df3bed52350be844b7e1a.tar.gz
src-1a6e1fb31663bc70b44df3bed52350be844b7e1a.zip
Add mkdir -p to import script
-rwxr-xr-ximport.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/import.sh b/import.sh
index d7fb0ca2..f1cc0e37 100755
--- a/import.sh
+++ b/import.sh
@@ -17,5 +17,6 @@ dest_path="$PWD/$1"
 [ -f "$dest_path" ] && error "$dest_path already exists"
 [ -f "$source_path" ] || error "$source_path does not exist"
 
+mkdir -p "$(dirname "$dest_path")"
 mv "$source_path" "$dest_path"
 ln -s "$dest_path" "$source_path"