mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +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>
19 lines
373 B
Bash
19 lines
373 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
delve)
|
|
dlv version 2>&1 | grep -F "$2" || {
|
|
echo "FAIL: dlv version did not print expected version '$2'"
|
|
exit 1
|
|
}
|
|
echo "dlv version: OK"
|
|
|
|
# Verify the binary is executable and responds to --help
|
|
dlv help 2>&1 | grep -qi "usage\|debugger\|help" || {
|
|
echo "FAIL: dlv help produced no usage output"
|
|
exit 1
|
|
}
|
|
echo "dlv help: OK"
|
|
;;
|
|
esac
|