From 59c50a03fcce187176bd2486d186265b181c83fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Tue, 7 Apr 2015 23:31:38 +0200 Subject: [PATCH] Don't use cat --- screenshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2