ClickHouse/utils/self-extracting-executable/post_build.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
184 B
Bash
Raw Normal View History

padding=" "
2022-08-02 19:39:11 +00:00
if [[ $OSTYPE == 'darwin'* ]]; then
sz="$(stat -f %z 'decompressor')"
else
sz="$(stat -c %s 'decompressor')"
fi
printf "%s%s" "${padding:${#sz}}" $sz