mirror of
https://github.com/jarun/nnn.git
synced 2024-11-19 09:29:15 +00:00
.cbcp plugin: output a more useful error message
This commit is contained in:
parent
fd998b3045
commit
4ddd048feb
|
@ -22,6 +22,7 @@
|
|||
IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" # protect trailing \n
|
||||
|
||||
selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
|
||||
[ -s "$selection" ] || { echo "plugin .cbcp error: empty selection" >&2 ; exit 1; }
|
||||
|
||||
if type xsel >/dev/null 2>&1; then
|
||||
# Linux
|
||||
|
|
Loading…
Reference in a new issue