From 2528aa2a8a22a7c319a071104e0735f5f959c8f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Tue, 7 Apr 2015 23:29:40 +0200 Subject: [PATCH 1/1] Change from printf to echo -n --- screenshot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenshot.sh b/screenshot.sh index 858797a..762005f 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -22,8 +22,8 @@ function take_screenshot() { FILENAME="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png" gnome-screenshot -f "${LOCALPATH}/${FILENAME}" -p "$@" scp -q "${LOCALPATH}/${FILENAME}" "${REMOTEUSER}@${REMOTEHOST}:${REMOTEPATH}" - printf "${URLBASE}/${FILENAME}"|xclip -selection p - printf "${URLBASE}/${FILENAME}"|xclip -selection c + echo -n "${URLBASE}/${FILENAME}"|xclip -selection p + echo -n "${URLBASE}/${FILENAME}"|xclip -selection c notify-send -i applets-screenshooter "screenshot.sh" "Screenshot published to ${URLBASE}/${FILENAME}" } -- 2.30.2