Handle std(err|out)_file both being the same file.

This commit is contained in:
redxef 2022-11-22 00:02:36 +01:00
parent c9d4d151ac
commit 2b718dab24
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -37,6 +37,6 @@ stdout_file="${STDOUT_FILE}"
${COMMAND} 1>"$stdout_file"
else
# both files specified
${COMMAND} 1>"$stdout_file" 2>"$stderr_file"
${COMMAND} 1>>"$stdout_file" 2>>"$stderr_file"
fi
)