summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-08-01 14:51:03 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-08-01 14:51:03 +0200
commit34bddb1c23a3c086ed1e7fc9551314b86be03f8a (patch)
treee65343a5211dc4b028c96c976573495b294690c9
parenta84aef85fda6d4ff714d27b9882df5e8d6c77166 (diff)
downloadptxdist-34bddb1c23a3c086ed1e7fc9551314b86be03f8a.tar.gz
ptxdist-34bddb1c23a3c086ed1e7fc9551314b86be03f8a.tar.xz
libptxdist: fix verbose printing
PTXDIST_VERBOSE is set to "1" when enabled, not "true". So test for non zero length instead of true. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--scripts/libptxdist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 57c599b9b..de52c4060 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -713,7 +713,7 @@ export -f ptxd_warning
# the message will always be written to the logfile
#
ptxd_verbose() {
- if [ "${PTXDIST_VERBOSE}" = "true" ]; then
+ if [ -z "${PTXDIST_VERBOSE}" ]; then
echo "${PTXDIST_LOG_PROMPT}""${@}" >&2
else
echo "${PTXDIST_LOG_PROMPT}""${@}" >&7