mirror of
https://github.com/swaywm/sway.git
synced 2025-02-15 22:55:09 +01:00
grimshot: Unary operator expected
fixes this error: /usr/local/bin/grimshot: line 22: [: ==: unary operator expected
This commit is contained in:
parent
e19bd1e474
commit
62e28f6129
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ getTargetDirectory() {
|
||||||
echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}
|
echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $1 == "--notify" ]; then
|
if [ "$1" = "--notify" ]; then
|
||||||
NOTIFY=yes
|
NOTIFY=yes
|
||||||
shift 1
|
shift 1
|
||||||
else
|
else
|
||||||
|
@ -55,7 +55,7 @@ notify() {
|
||||||
notify-send -t 3000 -a grimshot "$@"
|
notify-send -t 3000 -a grimshot "$@"
|
||||||
}
|
}
|
||||||
notifyOk() {
|
notifyOk() {
|
||||||
[ $NOTIFY = "no" ] && return
|
[ "$NOTIFY" = "no" ] && return
|
||||||
|
|
||||||
TITLE=${2:-"Screenshot"}
|
TITLE=${2:-"Screenshot"}
|
||||||
MESSAGE=${1:-"OK"}
|
MESSAGE=${1:-"OK"}
|
||||||
|
|
Loading…
Reference in a new issue