aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/grimshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/grimshot b/contrib/grimshot
index 24580dcd..8fc8741b 100755
--- a/contrib/grimshot
+++ b/contrib/grimshot
@@ -19,7 +19,7 @@ getTargetDirectory() {
19 echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}} 19 echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}
20} 20}
21 21
22if [ $1 == "--notify" ]; then 22if [ "$1" = "--notify" ]; then
23 NOTIFY=yes 23 NOTIFY=yes
24 shift 1 24 shift 1
25else 25else
@@ -55,7 +55,7 @@ notify() {
55 notify-send -t 3000 -a grimshot "$@" 55 notify-send -t 3000 -a grimshot "$@"
56} 56}
57notifyOk() { 57notifyOk() {
58 [ $NOTIFY = "no" ] && return 58 [ "$NOTIFY" = "no" ] && return
59 59
60 TITLE=${2:-"Screenshot"} 60 TITLE=${2:-"Screenshot"}
61 MESSAGE=${1:-"OK"} 61 MESSAGE=${1:-"OK"}