moved some functions to common.sh
This commit is contained in:
parent
7031ce64f2
commit
a8eae5e344
@ -2,21 +2,7 @@
|
||||
|
||||
SCRIPTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
|
||||
onMac() {
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
fi
|
||||
}
|
||||
|
||||
filesize() {
|
||||
if onMac; then
|
||||
stat -f%z $0
|
||||
else
|
||||
stat --printf="%s" $0
|
||||
fi
|
||||
}
|
||||
source $SCRIPTDIR/common.sh
|
||||
|
||||
FEL=fel
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user