From b2760540462ed936b920464fd68c328dae3beff0 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Mon, 25 Nov 2024 09:28:07 +0100 Subject: [PATCH] fix stat call (#60) somehow this was completely messed up: ``` -f, --file-system display file system status instead of file status %z time of last status change, human-readable ``` should be fine now: ``` -c --format=FORMAT use the specified FORMAT instead of the default; output a newline after each use of FORMAT %s total size, in bytes ``` --- planemo_ci_actions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planemo_ci_actions.sh b/planemo_ci_actions.sh index 8247442..28c5b34 100755 --- a/planemo_ci_actions.sh +++ b/planemo_ci_actions.sh @@ -199,7 +199,7 @@ if [ "$MODE" == "combine" ]; then [ "$PLANEMO_HTML_REPORT" == "true" ] && planemo test_reports upload/tool_test_output.json --test_output upload/tool_test_output.html [ "$PLANEMO_MD_REPORT" == "true" ] && ( planemo test_reports upload/tool_test_output.json --test_output_markdown upload/tool_test_output.md - if [ "$(stat -f %z upload/tool_test_output.md)" -gt 1048576 ]; then + if [ "$(stat -c %s upload/tool_test_output.md)" -gt 1048576 ]; then planemo test_reports upload/tool_test_output.json --test_output_minimal_markdown upload/tool_test_output.md fi )