mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 09:44:25 +01:00
fix: can't get file size if gnubin/stat is already installed in homebrew
This commit is contained in:
parent
03a7e2e8bf
commit
ac91a15aa9
@ -31,7 +31,7 @@ EOF
|
||||
filesize() {
|
||||
case "$(uname -s)" in
|
||||
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
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user