🐛 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
|
# Set default picker util
|
||||||
_picker() {
|
_picker() {
|
||||||
if [ -n "$BEMOJI_PICKER_CMD" ]; then
|
if [ -n "$BEMOJI_PICKER_CMD" ]; then
|
||||||
# shellcheck disable=SC2068
|
eval "${BEMOJI_PICKER_CMD[*]}"
|
||||||
${BEMOJI_PICKER_CMD[@]}
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for tool in "${!default_pickers[@]}"; do
|
for tool in "${!default_pickers[@]}"; do
|
||||||
if command -v "$tool" >/dev/null 2>&1; then
|
if command -v "$tool" >/dev/null 2>&1; then
|
||||||
${default_pickers[$tool]}
|
eval "${default_pickers[$tool]}"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue