only use clipboard if we have x
This commit is contained in:
parent
12d213f99b
commit
7797df4f30
@ -17,5 +17,9 @@ echo "Syncing..."
|
|||||||
openrsync -a --rsync-path=/usr/bin/openrsync \
|
openrsync -a --rsync-path=/usr/bin/openrsync \
|
||||||
${HOME}/patches/ suah.dev:/var/www/deftly/patches/
|
${HOME}/patches/ suah.dev:/var/www/deftly/patches/
|
||||||
URL="https://deftly.net/patches/${name}.diff"
|
URL="https://deftly.net/patches/${name}.diff"
|
||||||
echo -n "${URL}" | xclip
|
echo ${URL}
|
||||||
echo "Copied '${URL}' to clipboard.."
|
|
||||||
|
if [ ! -z $DISPLAY ]; then
|
||||||
|
echo -n "${URL}" | xclip
|
||||||
|
echo "Copied '${URL}' to clipboard.."
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user