ClickHouse/utils/self-extracting-executable/post_build.sh
2022-08-02 15:39:11 -04:00

8 lines
184 B
Bash
Executable File

padding=" "
if [[ $OSTYPE == 'darwin'* ]]; then
sz="$(stat -f %z 'decompressor')"
else
sz="$(stat -c %s 'decompressor')"
fi
printf "%s%s" "${padding:${#sz}}" $sz