diff options
author | 2020-06-17 15:13:36 -0500 | |
---|---|---|
committer | 2020-06-17 22:32:05 +0200 | |
commit | 62e28f6129666ca16badeedf9c2d6488d473a643 (patch) | |
tree | b113261fb7a75aac7b693b9a8cc20466a5156bf9 /contrib | |
parent | Add support for viewporter (diff) | |
download | sway-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-x | contrib/grimshot | 4 |
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 | ||
22 | if [ $1 == "--notify" ]; then | 22 | if [ "$1" = "--notify" ]; then |
23 | NOTIFY=yes | 23 | NOTIFY=yes |
24 | shift 1 | 24 | shift 1 |
25 | else | 25 | else |
@@ -55,7 +55,7 @@ notify() { | |||
55 | notify-send -t 3000 -a grimshot "$@" | 55 | notify-send -t 3000 -a grimshot "$@" |
56 | } | 56 | } |
57 | notifyOk() { | 57 | notifyOk() { |
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"} |