From 183ddc0ea5c70df8a933cbe3bf83f0272f1c8855 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 10 Mar 2011 20:56:56 -0500 Subject: Don't put spaces before case matches --- examples/data/scripts/instance-select-wmii.sh | 6 +++--- examples/data/scripts/session.sh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/data/scripts/instance-select-wmii.sh b/examples/data/scripts/instance-select-wmii.sh index f0a7bef..565ff48 100755 --- a/examples/data/scripts/instance-select-wmii.sh +++ b/examples/data/scripts/instance-select-wmii.sh @@ -15,7 +15,7 @@ DMENU_SCHEME="wmii" . "$UZBL_UTIL_DIR/dmenu.sh" case "$1" in - "list" ) + "list") list="" # get window id's of uzbl clients. we could also get the label in one shot but it's pretty tricky for i in $( wmiir read /tag/sel/index | grep uzbl | cut -d ' ' -f2 ); do @@ -25,7 +25,7 @@ case "$1" in window="$( printf "$list\n" | $DMENU | cut -d ' ' -f1 )" wmiir xwrite /tag/sel/ctl "select client $window" ;; - "next" ) + "next") current="$( wmiir read /client/sel/ctl | head -n 1 )" # find the next uzbl window and focus it next="$( wmiir read /tag/sel/index | grep -A 10000 " $current " | grep -m 1 uzbl | cut -d ' ' -f2 )" @@ -33,7 +33,7 @@ case "$1" in wmiir xwrite /tag/sel/ctl "select client $next" fi ;; - "prev" ) + "prev") current="$( wmiir read /client/sel/ctl | head -n 1 )" prev="$( wmiir read /tag/sel/index | grep -B 10000 " $current " | tac | grep -m 1 uzbl | cut -d ' ' -f2 )" if [ -n "$prev" ]; then diff --git a/examples/data/scripts/session.sh b/examples/data/scripts/session.sh index ea84da5..c95a9e5 100755 --- a/examples/data/scripts/session.sh +++ b/examples/data/scripts/session.sh @@ -39,7 +39,7 @@ if [ -z "$act" ]; then fi case $act in - "launch" ) + "launch") urls="$( cat "$UZBL_SESSION_FILE" )" if [ -z "$urls" ]; then $UZBL @@ -51,7 +51,7 @@ case $act in fi ;; - "endinstance" ) + "endinstance") if [ -z "$UZBL_FIFO" ]; then echo "session manager: endinstance must be called from uzbl" exit 1 @@ -60,7 +60,7 @@ case $act in echo exit > "$UZBL_FIFO" ;; - "endsession" ) + "endsession") for fifo in "$UZBL_FIFO_DIR/uzbl_fifo_*"; do if [ "$fifo" != "$UZBL_FIFO" ]; then echo "spawn $scriptfile endinstance" > "$fifo" @@ -69,7 +69,7 @@ case $act in [ -z "$UZBL_FIFO" ] || echo "spawn $scriptfile endinstance" > "$UZBL_FIFO" ;; - * ) + *) echo "session manager: bad action" echo "Usage: $scriptfile [COMMAND] where commands are:" echo " launch - Restore a saved session or start a new one" -- cgit v1.2.3