1
0
Fork 0

fix error message when executable used to provide list isn't installed

This commit is contained in:
Andrey Orst 2018-09-24 13:34:00 +03:00
parent 37016b0b04
commit c90c60ad83

View file

@ -109,7 +109,7 @@ define-command -hidden fzf -params 2 %{ evaluate-commands %sh{
fi fi
items_executable=$(echo $items_command | awk '{print $1}') items_executable=$(echo $items_command | awk '{print $1}')
if [ -z $(command -v $items_executable) ]; then if [ -z $(command -v $items_executable) ]; then
eval echo fail "\'$items_executable' executable not found. Is it installed?" echo "fail \'$items_executable' executable not found"
exit exit
fi fi
echo "echo eval -client $kak_client \"$callback\" | kak -p $kak_session" > $exec echo "echo eval -client $kak_client \"$callback\" | kak -p $kak_session" > $exec