aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar David Arnold <dar@xoe.solutions>2020-06-17 15:13:36 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-17 22:32:05 +0200
commit62e28f6129666ca16badeedf9c2d6488d473a643 (patch)
treeb113261fb7a75aac7b693b9a8cc20466a5156bf9 /contrib
parentAdd support for viewporter (diff)
downloadsway-62e28f6129666ca16badeedf9c2d6488d473a643.tar.gz
sway-62e28f6129666ca16badeedf9c2d6488d473a643.tar.zst
sway-62e28f6129666ca16badeedf9c2d6488d473a643.zip
grimshot: Unary operator expected
fixes this error: /usr/local/bin/grimshot: line 22: [: ==: unary operator expected
Diffstat (limited to 'contrib')
-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"}