You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
onMac() {
|
|
|
|
if [ "$(uname)" == "Darwin" ]; then
|
|
|
|
return 0;
|
|
|
|
else
|
|
|
|
return 1;
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
filesize() {
|
|
|
|
if onMac; then
|
|
|
|
stat -f "%z" $1
|
|
|
|
else
|
|
|
|
stat --printf="%s" $1
|
|
|
|
fi
|
|
|
|
}
|