+prepare_submit() +{
- local submit_dir="/tmp/iso2rootfs/submit_tmp"
- [ -d "${submit_dir}" ] || mkdir -p "${submit_dir}"
"mkdir -p" will create dir if it not exists, and if it exists, it will do nothing. -d is redundant, so here can just use: mkdir -p "${submit_dir}"
Good!
-------- Thanks Yu Chuan
Thanks, Xijian