Check if DISPLAY var is set for clipboard
This commit is contained in:
parent
1eefff0638
commit
7f19a6cf82
8
mbin.sh
8
mbin.sh
|
@ -23,5 +23,9 @@ if [[ $HASTEBIN == 1 ]]; then
|
|||
else
|
||||
link=$(echo $op | cut -f2 -d'/')
|
||||
fi
|
||||
echo ${MKR_BIN}${link} | tee /dev/tty | xclip -selection clipboard
|
||||
xdg-open ${MKR_BIN}${link}
|
||||
if [[ -v DISPLAY ]]; then
|
||||
echo ${MKR_BIN}${link} | tee /dev/tty | xclip -selection clipboard
|
||||
xdg-open ${MKR_BIN}${link}
|
||||
else
|
||||
echo ${MKR_BIN}${link}
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue