diff options
author | June McEnroe <june@causal.agency> | 2015-07-05 22:34:23 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2015-07-05 22:34:23 -0400 |
commit | 1a6e1fb31663bc70b44df3bed52350be844b7e1a (patch) | |
tree | d9205a80beedd80a1275979532fa45b19f608dc9 | |
parent | Add license to readme (diff) | |
download | src-1a6e1fb31663bc70b44df3bed52350be844b7e1a.tar.gz src-1a6e1fb31663bc70b44df3bed52350be844b7e1a.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" |