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 \
|
||||
${HOME}/patches/ suah.dev:/var/www/deftly/patches/
|
||||
URL="https://deftly.net/patches/${name}.diff"
|
||||
echo -n "${URL}" | xclip
|
||||
echo "Copied '${URL}' to clipboard.."
|
||||
echo ${URL}
|
||||
|
||||
if [ ! -z $DISPLAY ]; then
|
||||
echo -n "${URL}" | xclip
|
||||
echo "Copied '${URL}' to clipboard.."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user