Skip to content

Commit

Permalink
Fix regex condition in the bootstrap script.
Browse files Browse the repository at this point in the history
Bootstrap is broken at HEAD but that was hidden by another change.

--
PiperOrigin-RevId: 145075041
MOS_MIGRATED_REVID=145075041
  • Loading branch information
damienmg authored and vladmos committed Jan 20, 2017
1 parent 1cd2096 commit b46631b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bootstrap/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ LIBRARY_JARS="${LIBRARY_JARS} ${GRPC_LIBRARY_JARS}"
LIBRARY_JARS_ARRAY=($LIBRARY_JARS)
for i in $(seq 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
[[ "${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
done
[ "${ERROR_PRONE_INDEX:+present}" = "present" ] || { echo "no error prone jar"; echo "${LIBRARY_JARS_ARRAY[@]}"; exit 1; }
[ "${GUAVA_INDEX:+present}" = "present" ] || { echo "no guava jar"; exit 1; }
Expand Down

0 comments on commit b46631b

Please sign in to comment.