=====================================================================

--- Bug fixes ----------------------------

- VARIABLE__select actually sets the variable value after selection
This commit is contained in:
Wryn (yage) Wagner 2022-09-01 07:39:14 -06:00
parent 20b7cc32eb
commit 73e26a2ecb

View File

@ -17,7 +17,10 @@ __CHECK_ENV_VAR() {
local SELECTION_VALUES=$(eval echo '$'$NAME'__select' | sed 's/,/\n/g')
[ $SELECTION_VALUES ] && {
local SELECTION=$(echo $SELECTION_VALUES | __FZF "select a value for '$NAME'")
[ $SELECTION ] && export VALUE=$SELECTION
[ $SELECTION ] && {
export $NAME=$SELECTION
return 0
}
}
[ $VALUE ] && return 0