Skip to content
Snippets Groups Projects
Commit f7f67be8 authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/denittis/fix_origin_launcher' into 'master'

Never redirect stdout to the log file for setup commands

See merge request steamlinuxruntime!37
parents e09b2e61 d4289c7c
No related branches found
No related tags found
No related merge requests found
......@@ -186,8 +186,10 @@ if [ -n "$log_to_file" ]; then
ln -fns "${log_filename}" "${log_dir}/slr-latest.log" || :
if [ -n "${PRESSURE_VESSEL_BATCH-}" ]; then
# Leave stdout as-is, and only redirect stderr to the log, on the
if [[ (-z "$is_main" && -n "${STEAM_COMPAT_SESSION_ID-}")
|| -n "${PRESSURE_VESSEL_BATCH-}" ]]; then
# If we are running setup commands, or if we are gathering a system
# information report, we only redirect stderr to the log, on the
# assumption that stderr is for human-readable diagnostics but
# stdout could be for machine-readable output.
exec 2>> "${log_dir}/${log_filename}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment