From e8ad03d1f1410f06cec7730bafdf36c4421b15d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Thu, 3 Oct 2019 08:42:37 +0200 Subject: [PATCH] Fix bug --- screenshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenshot.sh b/screenshot.sh index e3b0037..842ff34 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -20,7 +20,7 @@ function errcho() { function take_screenshot() { FileName="$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n 1).png" - if [ "$@" = "clipboard" ]; then + if [ "$*" = "clipboard" ]; then xclip -out -selection clipboard -t image/png > "/tmp/${FileName}" 2>/dev/null if [ "$(file -b --mime-type "/tmp/${FileName}")" == "image/png" ]; then mv "/tmp/${FileName}" "${LocalPath}/" -- 2.30.2