Changes to make things work on MacOS/x64

This commit is contained in:
JeLuF
2023-02-10 22:34:52 +01:00
parent 6ab3133b33
commit 8465bc1bc9
4 changed files with 34 additions and 22 deletions

View File

@ -28,5 +28,12 @@ EOF
}
filesize() {
case "$(uname -s)" in
Linux*) stat -c "%s" $1;;
Darwin*) stat -f "%z" $1;;
*) echo "Unknown OS: $OS_NAME! This script runs only on Linux or Mac" && exit
esac
}