Fix dragdrop stderr causing issues (#374)

For w/e reason the output from `which` causes problems with nnn
rendering. This commit silences the problematic lines.
This commit is contained in:
0xACE 2019-11-04 03:42:00 +01:00 committed by Mischievous Meerkat
parent 6713bfba13
commit 955826a1e8

View file

@ -19,10 +19,10 @@ all=
dnd() dnd()
{ {
if which dragon-drag-and-drop; then if which dragon-drag-and-drop 2>&1 >/dev/null; then
dragon-drag-and-drop "$@" dragon-drag-and-drop "$@" 2>/dev/null
else else
dragon "$@" dragon "$@" 2>/dev/null
fi fi
} }