From cdaf0dd294fe11e18017832fe6a69626a5f66870 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 16 Aug 2017 11:27:32 +0200 Subject: [PATCH] tests/run.sh: fix verbose mode (#1997) Fixes https://github.com/awesomeWM/awesome/issues/1996. Also improves usage information. --- tests/run.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index b9ee03752..57fd162cf 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -18,7 +18,9 @@ export HOME=/dev/null # Parse options. usage() { cat >&2 < 3s. while true; do set +e @@ -145,7 +147,7 @@ wait_until_success() { fi sleep 0.05 done - if [[ $verbose ]]; then set -x; fi + if (( verbose )); then set -x; fi } # Wait for DISPLAY to be available, and setup xrdb,