diff options
author | 0xACE <0xACE@users.noreply.github.com> | 2019-11-04 03:42:00 +0100 |
---|---|---|
committer | Mischievous Meerkat <engineerarun@gmail.com> | 2019-11-04 08:12:00 +0530 |
commit | 955826a1e83a617069a419bce82ce5694f3c68dd (patch) | |
tree | 51dfd46c137f0f7346fb9b6a0a9835a045373c6d | |
parent | 6713bfba13a05c45c82d537c4bb08a2f4c076faf (diff) | |
download | nnn-955826a1e83a617069a419bce82ce5694f3c68dd.tar.gz |
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.
-rwxr-xr-x | plugins/dragdrop | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/dragdrop b/plugins/dragdrop index 6db7d5a..647e848 100755 --- a/plugins/dragdrop +++ b/plugins/dragdrop @@ -19,10 +19,10 @@ all= dnd() { - if which dragon-drag-and-drop; then - dragon-drag-and-drop "$@" + if which dragon-drag-and-drop 2>&1 >/dev/null; then + dragon-drag-and-drop "$@" 2>/dev/null else - dragon "$@" + dragon "$@" 2>/dev/null fi } |