Change from printf to echo -n
authorEinar Jørgen Haraldseid <einar@haraldseid.net>
Tue, 7 Apr 2015 21:29:40 +0000 (23:29 +0200)
committerEinar Jørgen Haraldseid <einar@haraldseid.net>
Tue, 7 Apr 2015 21:29:40 +0000 (23:29 +0200)
screenshot.sh

index 858797a30c48bb7cd801bd4e4ef2006b74ebdb49..762005f4d3acdb95e8cf7f3cd598db2ed13a9886 100755 (executable)
@@ -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}"
 }