Merge pull request #1050 from m-hosoi/main

fix: can't get file size if gnubin/stat is already installed in homebrew
This commit is contained in:
cmdr2 2023-03-24 12:24:02 +05:30 committed by GitHub
commit 696bb883d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}