Fix: GNU stats does not work on MacOS or FreeBSD
This commit is contained in:
parent
91a518f1aa
commit
b8c34c8f41
2
gen.sh
2
gen.sh
|
@ -188,7 +188,7 @@ newdataentry () {
|
||||||
test "$d" = "covers" && {
|
test "$d" = "covers" && {
|
||||||
printf "\t<image>"${cover}"</image>\n"
|
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}"
|
printf "\t<link filesize=\"%d\">%s</link>\n" "${fs}" "${ffn}"
|
||||||
}
|
}
|
||||||
} || {
|
} || {
|
||||||
|
|
Loading…
Reference in New Issue