Hide cygcheck command not found

This commit is contained in:
Aoran Zeng 2024-09-10 19:01:10 +08:00
parent fc6131283c
commit 135444cd47
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -7,7 +7,7 @@
* Contributors : Peng Gao <gn3po4g@outlook.com>
* |
* Created On : <2023-08-29>
* Last Modified : <2024-09-05>
* Last Modified : <2024-09-10>
*
* chsrc
* ------------------------------------------------------------*/
@ -443,7 +443,7 @@ measure_speed_for_url (void *url)
// https://github.com/RubyMetric/chsrc/issues/65
// curl (仅)在 Cygwin 上 -o nul 会把 nul 当做普通文件
// 为了践行 chsrc everywhere 的承诺,我们也考虑支持 Cygwin
if (0==system ("cygcheck --version>nul"))
if (0==system ("cygcheck --version >nul 2>nul"))
{
on_cygwin = true;
os_devnull = "/tmp/chsrc-measure-downloaded";