Skip to content

Commit

Permalink
feat(dracut.sh): protect push_host_devs function
Browse files Browse the repository at this point in the history
Check at least that the arguments are not an empty string.
  • Loading branch information
aafeijoo-suse committed Dec 21, 2023
1 parent 4a8f9ec commit 0cf16a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ long_version() {
push_host_devs() {
local _dev
for _dev in "$@"; do
[[ -z $_dev ]] && continue
[[ " ${host_devs[*]} " == *" $_dev "* ]] && return
host_devs+=("$_dev")
done
Expand Down

0 comments on commit 0cf16a9

Please sign in to comment.