iw5-mod/deps/zstd/tests/cli-tests/common/format.sh

20 lines
243 B
Bash
Raw Normal View History

#!/bin/sh
. "$COMMON/platform.sh"
zstd_supports_format()
{
zstd -h | grep > $INTOVOID -- "--format=$1"
}
format_extension()
{
if [ "$1" = "zstd" ]; then
printf "zst"
elif [ "$1" = "gzip" ]; then
printf "gz"
else
printf "$1"
fi
}