From 133ac19a3a2e6b6d92aa94df5a51d15953be677a Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:51:43 -0400 Subject: [PATCH] Fix up array read --- lug-helper.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 021b430..eaa54bc 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -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}')"