Shell判断创建文件夹

#!/bin/bash
if [ ! -d node_modules ];then
	mkdir node_modules;
	echo 'create node_modules';
else
	echo 'node_modules already exists.';
fi
原文地址:https://www.cnblogs.com/can-i-do/p/11200493.html