mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +01:00
commit
f0dbd87ba9
@ -31,7 +31,7 @@ EOF
|
|||||||
filesize() {
|
filesize() {
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Linux*) stat -c "%s" $1;;
|
Linux*) stat -c "%s" $1;;
|
||||||
Darwin*) stat -f "%z" $1;;
|
Darwin*) /usr/bin/stat -f "%z" $1;;
|
||||||
*) echo "Unknown OS: $OS_NAME! This script runs only on Linux or Mac" && exit
|
*) echo "Unknown OS: $OS_NAME! This script runs only on Linux or Mac" && exit
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user