![如何摆脱这个错误:./1.sh:13:./1.sh:语法错误:反引号替换中的 EOF](https://linux22.com/image/920268/%E5%A6%82%E4%BD%95%E6%91%86%E8%84%B1%E8%BF%99%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%9A.%2F1.sh%EF%BC%9A13%EF%BC%9A.%2F1.sh%EF%BC%9A%E8%AF%AD%E6%B3%95%E9%94%99%E8%AF%AF%EF%BC%9A%E5%8F%8D%E5%BC%95%E5%8F%B7%E6%9B%BF%E6%8D%A2%E4%B8%AD%E7%9A%84%20EOF.png)
我正在运行以下 shell 脚本:
#! /bin/sh
authToken=`curl -H "Content-Type: application/json" -X POST -d '{"username":"username","password":"password","recaptcha":""}' https://myurl`
curl -G "https://my-url-path?auth=$authToken" --output output.json
c=`grep -o "Hotfix[0-9]*" output.json | grep -o "[0-9]*" | awk 'n < $0 {n=$0}END{print n}'
curl "https://my-url-path/Hotfix$c/file$c.tar.bz2?auth=$authToken" --output file.tar.bz2
docker load < file.tar.bz2
我收到以下错误:
./1.sh: 13: ./1.sh: Syntax error: EOF in backquote substitution