🐛 Fix command evaluation for pickers
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fixes #28.
This commit is contained in:
parent
5bd53808a4
commit
bf9be79c31
1 changed files with 2 additions and 3 deletions
5
bemoji
5
bemoji
|
|
@ -264,14 +264,13 @@ _typer() {
|
|||
# Set default picker util
|
||||
_picker() {
|
||||
if [ -n "$BEMOJI_PICKER_CMD" ]; then
|
||||
# shellcheck disable=SC2068
|
||||
${BEMOJI_PICKER_CMD[@]}
|
||||
eval "${BEMOJI_PICKER_CMD[*]}"
|
||||
return
|
||||
fi
|
||||
|
||||
for tool in "${!default_pickers[@]}"; do
|
||||
if command -v "$tool" >/dev/null 2>&1; then
|
||||
${default_pickers[$tool]}
|
||||
eval "${default_pickers[$tool]}"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue