scripts: purge use of test '-a' and '-o' ops and clean up
commitd9c8f960ccc2091526982924734d9dd8061d777d
authorKyle J. McKay <mackyle@gmail.com>
Sat, 18 Nov 2017 02:26:41 +0000 (17 18:26 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 18 Nov 2017 02:26:41 +0000 (17 18:26 -0800)
tree570fe87c7e85e51567c89a0be58df3dc81f3bf3c
parent865bbf7e0ef9548d271fecc0c2962c3e01229698
scripts: purge use of test '-a' and '-o' ops and clean up

Although the test utility's '-a' and '-o' operators are
documented by POSIX, they are marked obsolete and may
not be supported by some implementations.

Furthermore, the semantics (i.e. precedence and order of
evaluation) are not well defined when they are in use.

Therefore expunge use of them in favor of multiple tests
combined with '||' and/or '&&'.

At the same time clean up the scripts by removing all
extraneous '\' and other oddities to make the scripts
a bit more stylistically consistent.

Also correct a few minor anomalies noticed in the process.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
40 files changed:
bin/create-personal-mob-area
bin/format-readme
bin/git-daemon-verify
bin/git-http-backend-verify
bin/git-shell-verify
bin/update-pwd-db
cgi/authrequired.cgi
cgi/snapshot.cgi
chrootsetup_dragonfly.sh
chrootsetup_freebsd.sh
chrootsetup_linux.sh
gitweb/genindex.sh
hooks/post-receive
hooks/pre-receive
hooks/update
install.sh
jailsetup.sh
jobd/combine-packs.sh
jobd/gc.sh
jobd/jobd.sh
jobd/update.sh
jobs/gitwebcache.sh
jobs/updateweb.sh
make-apache-conf.sh
shlib.sh
taskd/clone.sh
taskd/mail.sh
toolbox/backup-db.sh
toolbox/clear-all-htmlcache.sh
toolbox/edit-user-email.sh
toolbox/make-all-gc-eligible.sh
toolbox/perform-pre-gc-linking.sh
toolbox/project-changed.sh
toolbox/remove-user.sh
toolbox/reports/project-disk-use.sh
toolbox/reports/project-fsck-status.sh
toolbox/update-all-config.sh
toolbox/update-all-hooks.sh
toolbox/update-all-projects.sh
toolbox/updatecheck.sh