Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何确定我的 bash 到底有什么问题?我不时运行脚本并收到以下错误:
download.sh: line 254: syntax error near unexpected token `}' download.sh: line 254: `}'
但第 254 行没有“}”
您可以将 set -x 放在 bash 的第二行并再次运行它。
#!/bin/bash set -x ...... ...... ......