From fce20d79e682305d966ee210064ef8ac6be2b6d2 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Mon, 4 Jun 2018 23:10:39 -0700 Subject: Avoid dependency on coreutil. This use of seq is easy enough to emulate in bash which is a declared bootstrap dependency. Closes #5321. PiperOrigin-RevId: 199248546 --- scripts/bootstrap/compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index 04e41a6012..1c22e03b49 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh @@ -30,7 +30,7 @@ LIBRARY_JARS="${LIBRARY_JARS} ${GRPC_LIBRARY_JARS} ${GUAVA_JARS}" # # Please read the comment in third_party/BUILD for more details. LIBRARY_JARS_ARRAY=($LIBRARY_JARS) -for i in $(seq 0 $((${#LIBRARY_JARS_ARRAY[@]} - 1))) +for i in $(eval echo {0..$((${#LIBRARY_JARS_ARRAY[@]} - 1))}) do [[ "${LIBRARY_JARS_ARRAY[$i]}" =~ ^"third_party/error_prone/error_prone_core-".*\.jar$ ]] && ERROR_PRONE_INDEX=$i [[ "${LIBRARY_JARS_ARRAY[$i]}" =~ ^"third_party/guava/guava-".*\.jar$ ]] && GUAVA_INDEX=$i -- cgit v1.2.3