未验证 提交 394c9e33 编写于 作者: M MRXLT 提交者: GitHub

Merge pull request #68 from Badangel/cube-builder

Fix check download mode
......@@ -2,7 +2,7 @@
dict_name: test_dict
mode: base_only
download_mode: http
wget_port:8009
wget_port: 8009
buildtool_local: /home/work/Serving/build/output/bin/cube-builder
donefile_address: http://127.0.0.1/home/work/dangyifei/donefile
output_address: /home/work/dangyifei/test-transfer/test_data/output
......
......@@ -96,7 +96,7 @@ Log options:
logex.Notice(">>> Mode:", transfer.Dict.DictMode)
transfer.Dict.DownloadMode = configMgr.Read("default", "download_mode")
if transfer.Dict.DownloadMode != "http" || transfer.Dict.DownloadMode != "ftp" {
if transfer.Dict.DownloadMode != "http" && transfer.Dict.DownloadMode != "ftp" {
fmt.Fprintln(os.Stderr, "ERROR: nead [default] download_mode in config_file! only support ftp or http")
fmt.Fprintln(os.Stderr, usage)
os.Exit(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册