diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-09-06 12:55:39 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-09-06 13:01:48 +0200 |
commit | 4f64ffc9f98acc34f1a2091b34c29694b60800a5 (patch) | |
tree | 8d3ff0c8ef06fef34a1975c011ec59b537c37f1c /scripts | |
parent | 562176cda9843448ca81e766ade66727ec9e4d9e (diff) | |
download | ptxdist-4f64ffc9f98acc34f1a2091b34c29694b60800a5.tar.gz ptxdist-4f64ffc9f98acc34f1a2091b34c29694b60800a5.tar.xz |
libptxdist: verbose: only use fd 7 when it's setup
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/libptxdist.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 6e7c5b960..7d7e3b690 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -715,7 +715,7 @@ export -f ptxd_warning ptxd_verbose() { if [ "${PTXDIST_VERBOSE}" == "1" ]; then echo "${PTXDIST_LOG_PROMPT}""${@}" >&2 - else + elif [ -n "${PTXDIST_FD_LOGFILE}" ]; then echo "${PTXDIST_LOG_PROMPT}""${@}" >&7 fi } |