sh

判断是否存在目录

if [ ! -d ${LOG_PATH} ]; then
  mkdir -p ${LOG_PATH}
fi
原文地址:https://www.cnblogs.com/hulian425/p/14488079.html