mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
stat is different for macos
This commit is contained in:
parent
70d97e9393
commit
504180d7d6
@ -1,3 +1,7 @@
|
||||
padding=" "
|
||||
sz="$(stat -c %s 'decompressor')"
|
||||
if [[ $OSTYPE == 'darwin'* ]]; then
|
||||
sz="$(stat -f %z 'decompressor')"
|
||||
else
|
||||
sz="$(stat -c %s 'decompressor')"
|
||||
fi
|
||||
printf "%s%s" "${padding:${#sz}}" $sz
|
||||
|
Loading…
Reference in New Issue
Block a user