Skip to content

Commit

Permalink
fix stat call (#60)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
bernt-matthias authored Nov 25, 2024
1 parent ec3879d commit b276054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit b276054

Please sign in to comment.