From fcc151244513044f0e5192df25265a27897095a0 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Fri, 2 Sep 2022 23:03:47 +0000 Subject: avoid problem if path contains whitespace --- scripts/display_test_logs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/display_test_logs b/scripts/display_test_logs index d00e9c4..82b9f9f 100755 --- a/scripts/display_test_logs +++ b/scripts/display_test_logs @@ -3,14 +3,14 @@ # Display any logs in the tests folder # Move to the project root directory -if cd `dirname $0`/.. ; then +if cd "$(dirname "$0")/.."; then found= for f in tests/*.log; do - if [ -f $f ]; then + if [ -f "$f" ]; then echo - echo === $f === + echo "=== $f ===" echo - cat $f + cat "$f" found=1 fi done @@ -19,4 +19,4 @@ if cd `dirname $0`/.. ; then fi fi -exit $? +exit "$?" -- cgit v1.2.3