mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 08:07:24 +04:00
Remove the quiet mode flag (-q) from grep in version check commands to ensure that their stdout output is visible. While at it, switch the remaining regex matches (perl, sscep, awscli) to fixed-string matching where appropriate, so that special characters in the version string are matched literally. For libzip, the zipcmp and zipmerge branches ran grep and then unconditionally exited 0, so a version mismatch was never reported and the version check override always passed. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
17 lines
218 B
Bash
Executable File
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
|