mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-13 19:20:35 +00:00
Fix up array read
This commit is contained in:
parent
eb0bff1fc2
commit
133ac19a3a
@ -561,9 +561,7 @@ menu() {
|
||||
# so we can't differentiate between those two states
|
||||
|
||||
# Convert choice string to array elements for checklists
|
||||
ifsBAK="$IFS"
|
||||
IFS='|' read -a choices <<< "$choice"
|
||||
IFS="$ifsBAK"
|
||||
IFS='|' read -r -a choices <<< "$choice"
|
||||
|
||||
# Fetch the function to be called
|
||||
function_call="$(echo "${menu_actions[0]}" | awk '{print $1}')"
|
||||
|
Loading…
x
Reference in New Issue
Block a user