From 1a6e1fb31663bc70b44df3bed52350be844b7e1a Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 5 Jul 2015 22:34:23 -0400 Subject: Add mkdir -p to import script --- import.sh | 1 + 1 file changed, 1 insertion(+) 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" -- cgit 1.4.1