dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ceff422bf05ab79a7cfcb6162290a6cc82cd693f
parent d5f0d0f8580d8ed440425e2ebfae3480b444fdf4
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 12 Sep 2018 09:25:35 +0200

Fix bash syntax warnings

Diffstat:
Mlinks/bin/keyboard-layout-switch.sh | 2+-
Mlinks/bin/notify-send | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/links/bin/keyboard-layout-switch.sh b/links/bin/keyboard-layout-switch.sh @@ -24,7 +24,7 @@ fi # read the language file, and switch to the other language CURRLANG="`cat $LAYOUTFILE`" -if [ "$CURRLANG" == "$LANG1" ]; then +if [ "$CURRLANG" = "$LANG1" ]; then echo $LANG2 > $LAYOUTFILE setxkbmap $LANG2 $OPTS notify-send $LANG2 diff --git a/links/bin/notify-send b/links/bin/notify-send @@ -1,5 +1,5 @@ #!/bin/sh -if [[ "$(uname)" == "Darwin" ]]; then +if [ "$(uname)" = "Darwin" ]; then echo "$@" | terminal-notifier -sound default [ "$#" -gt "0" ] && say "$@" else