mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +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() {
|
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