mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 21:07: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>
18 lines
384 B
Bash
Executable File
18 lines
384 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "$1" = python3-awscli ] || exit 0
|
|
|
|
python3 - << 'EOF' || exit 1
|
|
from awscli.clidriver import create_clidriver
|
|
|
|
# Verify the CLI driver can be created
|
|
driver = create_clidriver()
|
|
assert driver is not None
|
|
EOF
|
|
|
|
# Verify the aws binary runs --version
|
|
aws --version 2>&1 | grep -F "aws-cli" || {
|
|
echo "ERROR: 'aws --version' did not produce expected output"
|
|
exit 1
|
|
}
|