Check if DISPLAY var is set for clipboard

Bu işleme şunda yer alıyor:
Ceda EI 2019-05-12 16:47:42 +05:30
ebeveyn 1eefff0638
işleme 7f19a6cf82
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme

Dosyayı Görüntüle

@ -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