X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/2528aa2a8a22a7c319a071104e0735f5f959c8f7..85e66018144ee26e09e833ce155bfc47a25b0ad4:/screenshot.sh diff --git a/screenshot.sh b/screenshot.sh index 762005f..973b581 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -19,7 +19,7 @@ function errcho() { } function take_screenshot() { - FILENAME="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png" + FILENAME="$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n 1).png" gnome-screenshot -f "${LOCALPATH}/${FILENAME}" -p "$@" scp -q "${LOCALPATH}/${FILENAME}" "${REMOTEUSER}@${REMOTEHOST}:${REMOTEPATH}" echo -n "${URLBASE}/${FILENAME}"|xclip -selection p