Select Git revision
Forked from
firmware / FFS Gluon
Source project has a limited visibility.
-
Matthias Schiffer authored
Suggested-by:
Steffen Möller <steffen_moeller@gmx.de>
Matthias Schiffer authoredSuggested-by:
Steffen Möller <steffen_moeller@gmx.de>
filesize.sh 278 B
#!/bin/sh
check_command() {
which "$1" >/dev/null 2>&1
}
if check_command gnustat; then
gnustat -c%s "$@"
elif check_command gstat; then
gstat -c%s "$@"
elif check_command stat; then
stat -c%s "$@"
else
echo "$0: no suitable stat implementation was found" >&2
exit 1
fi