This commit is contained in:
vanhauser-thc
2023-07-10 17:43:09 +02:00
parent e10e0e01e9
commit b547a6ab0d
2 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ BEGIN {
cmd = "stat --version 2>/dev/null"
cmd | getline statversion
close(cmd)
if (statversion ~ /GNU coreutils/) {
if (statversion ~ /GNU coreutils/ || statversion ~ /BusyBox/) {
stat_format = "-c '%s %n'" # GNU
} else {
stat_format = "-f '%z %N'" # *BSD, MacOS