summary refs log tree commit diff
path: root/import.sh
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2015-07-05 22:34:23 -0400
committerJune McEnroe <programble@gmail.com>2015-07-05 22:34:23 -0400
commit1be5373627c82d20ff33da4fa77e3d4bba76e472 (patch)
treef7373bf3146f0de2f52aa8f5705c130bb3a42c4c /import.sh
parentAdd license to readme (diff)
downloadsrc-1be5373627c82d20ff33da4fa77e3d4bba76e472.tar.gz
src-1be5373627c82d20ff33da4fa77e3d4bba76e472.zip
Add mkdir -p to import script
Diffstat (limited to 'import.sh')
-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"