From fb42d4b5ac18ffcd3bf1f2e35ce859e0f8925deb Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Mon, 16 Sep 2024 22:49:17 +0200 Subject: [PATCH] Don't redirect --usercache-path --- .github/workflows/ci-main.yml | 2 +- src/wesnoth.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index f09f0a5a653..75110e8173c 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -123,7 +123,7 @@ jobs: if: success() || steps.build.outcome == 'success' run: | ./wesnoth --version - for opt in data userdata + for opt in data userdata usercache do output=$(./wesnoth --nobanner --"$opt"-path) if [ "$output" = "" ]; then printf 'option --%s-path prints nothing to stdout!\n' "$opt" >&2; exit 1; fi diff --git a/src/wesnoth.cpp b/src/wesnoth.cpp index 8fd9a0b5b19..05793cbb73f 100644 --- a/src/wesnoth.cpp +++ b/src/wesnoth.cpp @@ -299,6 +299,7 @@ static int process_command_args(commandline_options& cmdline_opts) // command line options that imply not redirecting output to a log file && !cmdline_opts.data_path && !cmdline_opts.userdata_path + && !cmdline_opts.usercache_path && !cmdline_opts.version && !cmdline_opts.simple_version && !cmdline_opts.logdomains