【发布时间】:2016-06-14 17:20:44
【问题描述】:
我有一个 bash 脚本,它应该调用存储在 GitHub 上的 Python 脚本并使用参数运行它:
#!/bin/bash +x
wget https://github.place.otherplace.com/myrepo/repo_folder/blob/Python/pythonScript.py
chmod +x pythonScript.py
python pythonScript.py
我收到以下回复: HTTP 请求已发送,等待响应... 200 OK 长度:未指定 [text/html] 保存到:'DisputeSystem.py'
0K .......... .......... .......... ........ 795K=0.05s
2016-06-14 11:08:24 (795 KB/s) - ‘pythonScript.py’ saved [39657]
File "pythonScript.py", line 4
<!DOCTYPE html>
^
SyntaxError: invalid syntax
Build step 'Execute shell' marked build as failure
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: FAILURE
我认为它也与 wget 拉取 HTML 标题有关,但我还没有找到去除它们的方法。任何帮助表示赞赏。
【问题讨论】: