Fix: GNU stats does not work on MacOS or FreeBSD

This commit is contained in:
Jan Girlich 2020-06-12 18:34:13 +02:00
parent 91a518f1aa
commit b8c34c8f41
No known key found for this signature in database
GPG Key ID: D3730FB324783220
1 changed files with 1 additions and 1 deletions

2
gen.sh
View File

@ -188,7 +188,7 @@ newdataentry () {
test "$d" = "covers" && {
printf "\t<image>"${cover}"</image>\n"
} || {
fs=$(stat -c %s ${customdir}"/"${ffn})
fs=$(wc -c <${customdir}"/"${ffn})
printf "\t<link filesize=\"%d\">%s</link>\n" "${fs}" "${ffn}"
}
} || {