阅读背景:

在使用[!]时,在Bash的IF-ELSE条件中没有找到命令。- d“DIR”美元)

来源:互联网 

I have a code like this

我有一个这样的代码。

#!/bin/bash 
DIR="test_dir/";
if [! -d "$DIR"]; then
    # If it doesn't create it
    mkdir $DIR
fi
#!/bin/



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: