mirror of
https://github.com/openwrt/packages.git
synced 2026-07-12 22:44:28 +04:00
9ec085718d
Allow CI to pass the version check for packages with executables with not version output. Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
18 lines
385 B
Bash
18 lines
385 B
Bash
#!/bin/sh
|
|
|
|
case "$PKG_NAME" in
|
|
zabbix-extra-* | zabbix-frontend-server)
|
|
exit 0
|
|
;;
|
|
zabbix-agentd-basic)
|
|
zabbix_agentd -V 2>&1 | grep -F "${PKG_VERSION}"
|
|
;;
|
|
zabbix-proxy-basic-sqlite)
|
|
zabbix_proxy -V 2>&1 | grep -F "${PKG_VERSION}"
|
|
;;
|
|
*)
|
|
# We use tr as parameter string replace is undefined in POSIX
|
|
"$(echo "$PKG_NAME" | tr '-' '_')" -V 2>&1 | grep -F "${PKG_VERSION}"
|
|
;;
|
|
esac
|