diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-11-11 14:53:13 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-11-11 14:53:13 -0500 |
commit | 2c0b70aa52a96156f70e895c4113620c7de12e27 (patch) | |
tree | 4dea1316619b5306d7ced21c800554dec8ac770f | |
parent | 23f96e574b756339911103816c3b1a582a27f69b (diff) | |
download | stasis-2c0b70aa52a96156f70e895c4113620c7de12e27.tar.gz |
Use built in method for "if file size is greater than zero" check
-rw-r--r-- | tests/setup.sh | 2 |
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 "#" |