[fx] Fix pipe syntax for bash 3.x
Format "|&" was introduced in Bash 4, which is unavailable in MacOS.
This CL changes the syntax to the equivalent "2>&1 |" which works on
Bash 3+
Fixed: 44273
Change-Id: I75c25b31205608b7ef5a6cc1d2b2e1c670fd9feb
diff --git a/tools/devshell/run-test b/tools/devshell/run-test
index 0bc6170..3ec8490 100755
--- a/tools/devshell/run-test
+++ b/tools/devshell/run-test
@@ -81,7 +81,7 @@
fi
# TODO: remove reliance on pkgfs/packages.
- fx-command-run shell runtests "pkgfs/packages/${target}/0/test" "$@" |& fx-symbolize
+ fx-command-run shell runtests "pkgfs/packages/${target}/0/test" "$@" 2>&1 | fx-symbolize
}
main "$@"