v2.6.2
===================================================================== --- Bug fixes ---------------------------- - VARIABLE__select actually sets the variable value after selection
This commit is contained in:
parent
20b7cc32eb
commit
73e26a2ecb
@ -17,7 +17,10 @@ __CHECK_ENV_VAR() {
|
|||||||
local SELECTION_VALUES=$(eval echo '$'$NAME'__select' | sed 's/,/\n/g')
|
local SELECTION_VALUES=$(eval echo '$'$NAME'__select' | sed 's/,/\n/g')
|
||||||
[ $SELECTION_VALUES ] && {
|
[ $SELECTION_VALUES ] && {
|
||||||
local SELECTION=$(echo $SELECTION_VALUES | __FZF "select a value for '$NAME'")
|
local SELECTION=$(echo $SELECTION_VALUES | __FZF "select a value for '$NAME'")
|
||||||
[ $SELECTION ] && export VALUE=$SELECTION
|
[ $SELECTION ] && {
|
||||||
|
export $NAME=$SELECTION
|
||||||
|
return 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
[ $VALUE ] && return 0
|
[ $VALUE ] && return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user