Convert [ ... ] to test ... in scripting.

The "[" link may be missing during OS boostrapping.

* build.sh: Convert "[ ... ]" to "test ..."
* maintMakefile: Ditto.
* scripts/copyright-update: Ditto
* tests/scripts/features/reinvoke: Ditto
* tests/scripts/features/targetvars: Ditto
This commit is contained in:
Paul Smith
2020-05-03 13:39:55 -04:00
parent a015d1f822
commit c8a6263eb5
5 changed files with 16 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ getfiles () {
run () {
cmd=$(command -v "$update") || die "Cannot locate update-copyright ($update)"
[ -x "$cmd" ] || die "Cannot locate update-copyright ($update)"
test -x "$cmd" || die "Cannot locate update-copyright ($update)"
force=false
@@ -30,9 +30,9 @@ run () {
if $force; then
: just do it
elif [ ! -f src/makeint.h ]; then
elif test ! -f src/makeint.h; then
die "Run in the root of the GNU make workspace"
elif [ -f configure ]; then
elif test -f configure; then
die "Run in a clean workspace (git clean -fdX)"
fi