From 1be5373627c82d20ff33da4fa77e3d4bba76e472 Mon Sep 17 00:00:00 2001 From: Curtis 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