aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-11-11 14:53:13 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-11-11 14:53:13 -0500
commit2c0b70aa52a96156f70e895c4113620c7de12e27 (patch)
tree4dea1316619b5306d7ced21c800554dec8ac770f
parent23f96e574b756339911103816c3b1a582a27f69b (diff)
downloadstasis-2c0b70aa52a96156f70e895c4113620c7de12e27.tar.gz
Use built in method for "if file size is greater than zero" check
-rw-r--r--tests/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index a56c899..08e0de5 100644
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -120,7 +120,7 @@ run_command() {
(( STASIS_TEST_RESULT_SKIP++ ))
else
echo "... FAIL"
- if (( $(wc -c "$logfile" | cut -d ' ' -f 1) > 1 )); then
+ if [[ -s "$logfile" ]]; then
echo "#"
echo "# Last $lines_on_error line(s) follow:"
echo "#"