check if dest folder exist
This commit is contained in:
parent
a03a531bbd
commit
7027cd0c80
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ check ()
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ ! -d $dest ]
|
||||||
|
then
|
||||||
|
echo "Create $dest..."
|
||||||
|
mkdir $dest
|
||||||
|
fi
|
||||||
|
|
||||||
for i in ${folders}
|
for i in ${folders}
|
||||||
do
|
do
|
||||||
for j in $(find "$origin$i" -type f -iname "*.org")
|
for j in $(find "$origin$i" -type f -iname "*.org")
|
||||||
|
|
Loading…
Reference in a new issue