[build] update toranj build script to skip over empty "" args (#6424)

This commit updates `toranj/build.sh` script to skip over empty ""
arguments at the start. This addresses an issue introduced in commit
531cb3484 (PR #6421) where the `start.sh` adds an empty arg when
invoking `build.sh` when coverage is not enabled.
This commit is contained in:
Abtin Keshavarzian
2021-04-09 19:44:32 -07:00
committed by GitHub
parent dfe9b006f4
commit 4acc997bf5
+3
View File
@@ -74,6 +74,9 @@ while [ $# -ge 2 ]; do
tests=yes
shift
;;
"")
shift
;;
*)
echo "Error: Unknown option \"$1\""
display_usage