Don't use du -b
du -b doesn't exist on macOS so do an explicit check in bash to see if the file has a non-zero size.
@@ -26,8 +26,7 @@ shell_tool_test(
--output "$$kindex_output" \\
--source "$$input"
- size="$$(du -b "$$kindex_output" | cut -f1)"
- if [[ "$$size" -eq 0 ]] ; then
+ if [[ ! -s "$$kindex_output" ]]; then
echo "FAILED: output $$kindex_output is empty"
exit 1
fi
