我正在运行以下 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