]> git.ipfire.org Git - ipfire-2.x.git/commit
tests/lib.sh: Add check if variable exists to test_value_in_array
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Jun 2024 16:02:30 +0000 (18:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Aug 2024 12:19:56 +0000 (12:19 +0000)
commit035f866d75eb0d5fca55c02cca0f5e7dedc3894f
treef08f588231ced08ece4dcb3fffc0b4584bbd5996
parentdae8a08086150fc12687a41ba30fc5335b6966e6
tests/lib.sh: Add check if variable exists to test_value_in_array

We cannot use [ -v ] here as this does not work. We need to check if the
array is correctly declared.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/lib.sh