From c53baa5c435098067dc467ae02dbf33dcc03b766 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Sat, 27 May 2017 12:36:44 +0200 Subject: [PATCH] Small fix to pass shellcheck --- screenshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenshot.sh b/screenshot.sh index ec1931b..e3b0037 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -22,7 +22,7 @@ function take_screenshot() { FileName="$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n 1).png" 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 + if [ "$(file -b --mime-type "/tmp/${FileName}")" == "image/png" ]; then mv "/tmp/${FileName}" "${LocalPath}/" else rm "/tmp/${FileName}" -- 2.30.2