diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 20:56:56 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 22:32:49 -0500 |
commit | 183ddc0ea5c70df8a933cbe3bf83f0272f1c8855 (patch) | |
tree | 273dac9fb9916ae79d689adb8170188c22e6d339 /examples/data/scripts/session.sh | |
parent | 0834c606592abddf889229826a8ed93190685f50 (diff) |
Don't put spaces before case matches
Diffstat (limited to 'examples/data/scripts/session.sh')
-rwxr-xr-x | examples/data/scripts/session.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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" |