Merge commit 'refs/pull/42/head' of github.com:archlinux/arch-install-scripts

* github.com:archlinux/arch-install-scripts:
  common: avoid variable name conflict with genfstab
This commit is contained in:
Morten Linderud 2023-01-25 13:47:01 +01:00
commit 2d1d4904b9
No known key found for this signature in database
GPG Key ID: 9C02FF419FECBE16

6
common
View File

@ -314,10 +314,10 @@ optstring_prepend_option() {
}
optstring_get_option() {
local opts o
local _opts o
IFS=, read -ra opts <<<"${!1}"
for o in "${opts[@]}"; do
IFS=, read -ra _opts <<<"${!1}"
for o in "${_opts[@]}"; do
if optstring_match_option "$2" "$o"; then
declare -g "$o"
return 0