Fix an clipboard issue if it there wasn't $DISPLAY
This commit is contained in:
parent
235761b103
commit
01cd5bae40
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Name: SearchSploit - Exploit-DB's CLI search tool
|
# 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
|
# Written by: Offensive Security, Unix-Ninja & g0tmi1k
|
||||||
# Homepage: https://github.com/offensive-security/exploit-database
|
# Homepage: https://github.com/offensive-security/exploit-database
|
||||||
#
|
#
|
||||||
|
@ -274,9 +274,9 @@ if [[ "${GETPATH}" -eq 1 ]]; then
|
||||||
if [[ "${CLIPBOARD}" -eq 1 ]]; then
|
if [[ "${CLIPBOARD}" -eq 1 ]]; then
|
||||||
## Are any copy programs available?
|
## Are any copy programs available?
|
||||||
if hash xclip 2>/dev/null || hash pbcopy 2>/dev/null; then
|
if hash xclip 2>/dev/null || hash pbcopy 2>/dev/null; then
|
||||||
## Linux
|
## Linux (Will require $DISPLAY)
|
||||||
if hash xclip 2>/dev/null; then
|
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."
|
echo "Copied EDB-ID ${edbdb}'s path to the clipboard."
|
||||||
## OSX
|
## OSX
|
||||||
elif hash pbcopy 2>/dev/null; then
|
elif hash pbcopy 2>/dev/null; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue