summary refs log tree commit diff
diff options
context:
space:
mode:
-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"