From: Serge Hallyn Date: Tue, 28 Feb 2023 03:16:38 +0000 (-0600) Subject: run_some: fix shellcheck warning X-Git-Tag: 4.14.0-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61ca915ac5a823a074aa350488b07e8f997336bb;p=thirdparty%2Fshadow.git run_some: fix shellcheck warning shellcheck warns against using echo with flags, as posix sh won't support it. It suggests using printf, so let's do that. Signed-off-by: Serge Hallyn --- diff --git a/tests/run_some b/tests/run_some index 0e7729df6..91f5626b1 100755 --- a/tests/run_some +++ b/tests/run_some @@ -25,14 +25,14 @@ run_test() fi if [ -n "$2" ]; then # ignore failure - echo -n "." + printf '.' elif [ $passed -eq 1 ]; then succeeded=$((succeeded+1)) - echo -n "+" + printf '+' else failed=$((failed+1)) failed_tests="$failed_tests $1" - echo -n "-" + printf '-' fi cat $1.log >> testsuite.log [ -f /etc/passwd.lock ] && echo $1 /etc/passwd.lock || true