diff options
author | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-03-29 15:27:52 +0200 |
---|---|---|
committer | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-03-29 15:27:52 +0200 |
commit | 47c12001920a79d860a67a0235ca43ba0a45dcee (patch) | |
tree | d13ec2ec2987481a7f5e6582c1e2289c373994f4 | |
parent | bc681bb8b4fb4a9974a0f3f9d282038bdde77f28 (diff) |
kill bashizm [ == ]
-rwxr-xr-x | examples/data/scripts/formfiller.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/data/scripts/formfiller.sh b/examples/data/scripts/formfiller.sh index 97b046b..69eca17 100755 --- a/examples/data/scripts/formfiller.sh +++ b/examples/data/scripts/formfiller.sh @@ -91,7 +91,7 @@ if [ "$action" != 'edit' -a "$action" != 'new' -a "$action" != 'load' -a "$acti then action="new" [ -e "$keydir/$domain" ] && action="load" -elif [ "$action" == 'edit' ] && [ ! -e "$keydir/$domain" ] +elif [ "$action" = 'edit' ] && [ ! -e "$keydir/$domain" ] then action="new" fi @@ -207,9 +207,9 @@ then sed -e 's/@/\\@/g' > $fifo rm -f $tmpfile else - if [ "$action" == 'new' -o "$action" == 'add' ] + if [ "$action" = 'new' -o "$action" = 'add' ] then - [ "$action" == 'new' ] && echo "$MODELINE" > $keydir/$domain + [ "$action" = 'new' ] && echo "$MODELINE" > $keydir/$domain echo "!profile=NAME_THIS_PROFILE$RANDOM" >> $keydir/$domain # # 2. and 3. line (tr -d and sed) are because, on gmail login for example, @@ -219,7 +219,7 @@ else # type="text" # value=""> # So, tr removes all new lines, and sed inserts new line after each > - # Next sed selects only <input> tags and only with type == "text" or == "password" + # Next sed selects only <input> tags and only with type = "text" or = "password" # If type is first and name is second, then another sed will change their order # so the last sed will make output # text_from_the_name_attr(text or password): |