Fix up array read

This commit is contained in:
the-sane 2024-10-25 11:51:43 -04:00
parent eb0bff1fc2
commit 133ac19a3a

View File

@ -561,9 +561,7 @@ menu() {
# so we can't differentiate between those two states # so we can't differentiate between those two states
# Convert choice string to array elements for checklists # Convert choice string to array elements for checklists
ifsBAK="$IFS" IFS='|' read -r -a choices <<< "$choice"
IFS='|' read -a choices <<< "$choice"
IFS="$ifsBAK"
# Fetch the function to be called # Fetch the function to be called
function_call="$(echo "${menu_actions[0]}" | awk '{print $1}')" function_call="$(echo "${menu_actions[0]}" | awk '{print $1}')"