如果不存在,我正在尝试/proj
使用子目录创建新目录。但是,它不是创建多个子目录,而是创建一个名为bin, cgi, sbin, etc...
/proj
{Changes...src}
#If project directory exists, then do not create a new one.
if [ -d /proj ]; then
echo "Project directory exists. New directory will not be created."
#Otherwise, create a new project directory.
else
echo "Project directory does not exist. Creating a new project directory..."
mkdir -p proj/{Changes,Makefile,bin,cgi,doc,etc,html,lib,sbin,src}
fi
我缺少什么来制作我想要的子目录?