In actions-shared-workflows the version is now checked in
test-version.sh, while test.sh is left for the generic tests.
The script only asserts that the binary is present, because domoticz
reports no version; say so in the file, so that a later reader does not
'fix' the override by adding a version probe.
Add a default arm as well, so that an unknown sub-package fails loudly
instead of falling off the end of the case and returning 0.
Signed-off-by: Josef Schlehofer <redacted>
--- /dev/null
+#!/bin/sh
+
+# shellcheck shell=busybox
+
+case "$1" in
+ domoticz)
+ # domoticz has no flag that prints its version; just verify the
+ # binary is present
+ [ -x /usr/bin/domoticz ] || exit 1
+ ;;
+
+ *)
+ echo "Untested package: $1" >&2
+ exit 1
+ ;;
+esac
+++ /dev/null
-#!/bin/sh
-
-case "$1" in
- domoticz)
- [ -x /usr/bin/domoticz ] || exit 1
- ;;
-esac