From 01cd5bae40a1e56d3e7ecce306eb7d20bf5caec4 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Tue, 20 Sep 2016 23:28:07 +0100 Subject: [PATCH] Fix an clipboard issue if it there wasn't $DISPLAY --- searchsploit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/searchsploit b/searchsploit index 5ea1b82ea..f03aea285 100755 --- a/searchsploit +++ b/searchsploit @@ -1,6 +1,6 @@ #!/bin/bash # Name: SearchSploit - Exploit-DB's CLI search tool -# Version: 3.6 (Release date: 2016-09-19) +# Version: 3.6.1 (Release date: 2016-09-20) # Written by: Offensive Security, Unix-Ninja & g0tmi1k # Homepage: https://github.com/offensive-security/exploit-database # @@ -274,9 +274,9 @@ if [[ "${GETPATH}" -eq 1 ]]; then if [[ "${CLIPBOARD}" -eq 1 ]]; then ## Are any copy programs available? if hash xclip 2>/dev/null || hash pbcopy 2>/dev/null; then - ## Linux + ## Linux (Will require $DISPLAY) if hash xclip 2>/dev/null; then - echo -ne "${location}" | xclip -selection clipboard + echo -ne "${location}" | xclip -selection clipboard 2>/dev/null echo "Copied EDB-ID ${edbdb}'s path to the clipboard." ## OSX elif hash pbcopy 2>/dev/null; then