Skip to content

Commit

Permalink
fix command evaluation for pickers
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSom3body committed Nov 17, 2024
1 parent cc9f809 commit 9780c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bemoji
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ _typer() {
_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
Expand Down

0 comments on commit 9780c5b

Please sign in to comment.