From 9eb4e8987ba303feb6e1de90dfde8f69fea8a41e Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 9 Dec 2024 17:21:31 +0800 Subject: [PATCH] Fix to Let `curl` output to stdout and stderr to make `xy_run()` get info [GitHub #144] --- src/framework/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/core.c b/src/framework/core.c index 74c944e..eb3de18 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -693,7 +693,7 @@ select_mirror_autoly (Source_t *sources, size_t size, const char *target_name) if (xy_on_windows) { - char *curl_version = xy_run ("curl --version >nul 2>nul", 1, NULL); + char *curl_version = xy_run ("curl --version", 1, NULL); /** * https://github.com/RubyMetric/chsrc/issues/144 *