aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 20:55:52 -0500
committerGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 22:32:49 -0500
commit0834c606592abddf889229826a8ed93190685f50 (patch)
tree0f8b8065b4b49ed95630afc65e60ae9df8c239e5 /examples
parent7ca2f68bf19b903cf93da5b5d153bee24a314aa5 (diff)
Chain test commands together
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/scripts/formfiller.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/formfiller.sh b/examples/data/scripts/formfiller.sh
index f595eed..b41faf4 100755
--- a/examples/data/scripts/formfiller.sh
+++ b/examples/data/scripts/formfiller.sh
@@ -58,7 +58,7 @@ shift
domain="$( echo "$UZBL_URI" | sed -e 's/\(http\|https\):\/\/\([^\/]\+\)\/.*/\2/' )"
-if [ "$action" != 'edit' -a "$action" != 'new' -a "$action" != 'load' -a "$action" != 'add' -a "$action" != 'once' ]; then
+if [ "$action" != 'edit' ] && [ "$action" != 'new' ] && [ "$action" != 'load' ] && [ "$action" != 'add' ] && [ "$action" != 'once' ]; then
action="new"
[ -e "$UZBL_FORMS_DIR/$domain" ] && action="load"
elif [ "$action" = 'edit' ] && [ ! -e "$UZBL_FORMS_DIR/$domain" ]; then