Removed un-necessary shifts and reset index of variable

This commit is contained in:
Tristan Ancelet 2023-12-06 11:31:10 -06:00
parent 6cf389acdd
commit 5501e3fa57

View File

@ -18,9 +18,8 @@ get_disks () {
get_choices () {
local PROMPT="$1"
shift
local -n OUTPUT_VAR="$1"
shift
local -n OUTPUT_VAR="$2"
shift 2
local -a OPTIONS=( $@ )
select item in ${OPTIONS[@]} quit; do
@ -45,8 +44,7 @@ get_choice () {
echo "1: $1"
local PROMPT="$1"
local -n OUTPUT_VAR="$2"
shift
shift
shift 2
local -a OPTIONS=( $@ )
select item in ${OPTIONS[@]} quit; do