X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/6aa63624e9f9295b64c9bcd1b570fbcfff569f71..407e7e5c5d504db44d89cb6d5d3a92d693009a8c:/screenshot.sh?ds=sidebyside

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}"