diff options
author | June McEnroe <programble@gmail.com> | 2015-07-05 22:34:23 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2015-07-05 22:34:23 -0400 |
commit | 1be5373627c82d20ff33da4fa77e3d4bba76e472 (patch) | |
tree | f7373bf3146f0de2f52aa8f5705c130bb3a42c4c | |
parent | Add license to readme (diff) | |
download | src-1be5373627c82d20ff33da4fa77e3d4bba76e472.tar.gz src-1be5373627c82d20ff33da4fa77e3d4bba76e472.zip |
Add mkdir -p to import script
-rwxr-xr-x | import.sh | 1 |
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" |