🐛 Fix command evaluation for pickers
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Fixes #28.
This commit is contained in:
Karun Sandhu 2025-02-06 15:02:13 +01:00 committed by Marty Oehme
parent 5bd53808a4
commit bf9be79c31
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

5
bemoji
View file

@ -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