sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 62e28f6129666ca16badeedf9c2d6488d473a643
parent e19bd1e47441e6292eb77d7caa8b3211666bef2e
Author: David Arnold <dar@xoe.solutions>
Date:   Wed, 17 Jun 2020 15:13:36 -0500

grimshot: Unary operator expected

fixes this error:
/usr/local/bin/grimshot: line 22: [: ==: unary operator expected
Diffstat:
Mcontrib/grimshot | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/grimshot b/contrib/grimshot @@ -19,7 +19,7 @@ getTargetDirectory() { echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}} } -if [ $1 == "--notify" ]; then +if [ "$1" = "--notify" ]; then NOTIFY=yes shift 1 else @@ -55,7 +55,7 @@ notify() { notify-send -t 3000 -a grimshot "$@" } notifyOk() { - [ $NOTIFY = "no" ] && return + [ "$NOTIFY" = "no" ] && return TITLE=${2:-"Screenshot"} MESSAGE=${1:-"OK"}