我使用“curl -sO”命令从这个 GitHub 项目链接下载项目文件:http: //github.com/ziyaddin/xampp/archive/master.zip
但是,我无法下载。发生错误并说:
Archive: /home/ziyaddin/Desktop/master.zip
[/home/ziyaddin/Desktop/master.zip] End-of-central-directory
signature not found. Either this file is not a zipfile, or it
constitutes one disk of a multi-part archive. In the latter case
the central directory and zipfile comment will be found on the last
disk(s) of this archive. zipinfo: cannot find zipfile directory in
one of /home/ziyaddin/Desktop/master.zip or
/home/ziyaddin/Desktop/master.zip.zip, and cannot find
/home/ziyaddin/Desktop/master.zip.ZIP, period.
但我可以使用 curl 命令下载此链接:http: //cloud.github.com/downloads/pivotal/jasmine/jasmine-standalone-1.3.1.zip
我认为这是因为它在 cloud.github.com 中。我想知道如何使用 curl 命令从第一个链接下载?