小编Bar*_*sch的帖子

Bash 语法错误缺少“then”

对于我的 Makefile 中的以下几行,我收到错误

Syntax error: end of file unexpected (expecting "then")
Run Code Online (Sandbox Code Playgroud)

代码:

if [ ! -d upload-api/app-router/ ] then
    git clone someRepo upload-api/app-router/
fi
Run Code Online (Sandbox Code Playgroud)

我试过在括号后加分号,但仍然出现同样的错误

bash makefile make

3
推荐指数
1
解决办法
7081
查看次数

标签 统计

bash ×1

make ×1

makefile ×1