Shell判断创建文件夹

#!/bin/bash
if [ ! -d node_modules ];then
    mkdir node_modules;
    echo 'create node_modules';
else
    echo 'node_modules already exists.';
fi

猜你喜欢

转载自www.cnblogs.com/can-i-do/p/11200493.html
今日推荐