小编ska*_*nga的帖子

Bash one liner - 测试文件是否存在,如果其他文件出现错误,请测试源文件

换句话说,我想把它变成一个单行:

    test -e ${MY_HOME}/setup-env.sh || { echo "ERROR: MY_HOME not defined or does not contain srtup-env.sh" 1>&2 ; exit 1; }

    . ${MY_HOME}/setup-env.sh
Run Code Online (Sandbox Code Playgroud)

php testing bash

7
推荐指数
1
解决办法
9197
查看次数

标签 统计

bash ×1

php ×1

testing ×1