packages/utils/coreutils/test-version.sh

17 lines
218 B
Bash
Executable File

#!/bin/sh
if [ "$PKG_NAME" = 'coreutils' ]; then
exit 0
fi
EXEC=${PKG_NAME#coreutils-}
case "$EXEC" in
echo|false|kill|printf|pwd|test|true)
exit 0
;;
*)
"$EXEC" --version 2>&1 | grep -F "$PKG_VERSION"
;;
esac