From 7027cd0c80c978c2f5259bc7349b955f2d0ab112 Mon Sep 17 00:00:00 2001 From: rick Date: Sun, 3 Apr 2022 02:13:57 +0200 Subject: [PATCH] check if dest folder exist --- import.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/import.sh b/import.sh index 0021740..922692d 100755 --- a/import.sh +++ b/import.sh @@ -58,6 +58,12 @@ check () esac } +if [ ! -d $dest ] +then + echo "Create $dest..." + mkdir $dest +fi + for i in ${folders} do for j in $(find "$origin$i" -type f -iname "*.org")