From 9204cd9649b7150b0db3a29d5f674e9e02095de5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 25 Dec 2016 19:17:35 -0500 Subject: [PATCH] weechat: refactor wee script --- weechat/bin/wee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/weechat/bin/wee b/weechat/bin/wee index 34cfd5c1..83879888 100755 --- a/weechat/bin/wee +++ b/weechat/bin/wee @@ -4,8 +4,7 @@ # and prepends * to commands). fifos=$(echo "$HOME/.weechat/weechat_fifo_*") -if [ -z "$fifos" ] -then +if [[ -z "$fifos" ]]; then >&2 echo "No FIFOs. Is weechat running?" exit 1 fi @@ -21,8 +20,7 @@ rd() { fi | sed '/^ *\(#\|$\)/ d;s/^/*/g' } -if [ "$1" = "-d" ] -then +if [[ "$1" = "-d" ]]; then shift rd $@ else