]> git.ipfire.org Git - ipfire-2.x.git/commit
initscripts fkt: Ignore comments in readhash
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Jun 2024 16:02:39 +0000 (18:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Aug 2024 12:19:56 +0000 (12:19 +0000)
commitd289bc28beb65a937aba335501a86102d0455cec
tree9197ae4ad96b337c28284da47ef124e1ce7b5298
parent59e3c2a217e7b219c62fe07f702ead9594b1ac24
initscripts fkt: Ignore comments in readhash

As '#Another Comment' is a valid key we test this change by checking if
the comments do not end up as keys in our array.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/functions
tests/src/initscripts/system/functions/data/1
tests/src/initscripts/system/functions/test.sh