shell如果文件夹不存在则创建

#!/bin/bash

build_dir="build"

if [ ! -d "$build_dir" ]; then
        mkdir $build_dir
fi

cd build
cmake ..
make
cd -

猜你喜欢

转载自www.cnblogs.com/wjundong/p/10851424.html