From ff3dffee5f6237b6a04ad51e139233605d496675 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 5 Apr 2022 01:55:13 -0600 Subject: [PATCH] devops: fix argument parsing in Chromium build script (#13309) --- browser_patches/chromium/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser_patches/chromium/build.sh b/browser_patches/chromium/build.sh index 077ffaee52..6dc9193e9e 100755 --- a/browser_patches/chromium/build.sh +++ b/browser_patches/chromium/build.sh @@ -33,7 +33,7 @@ IS_ARM64="" IS_SYMBOLS_BUILD="" IS_FULL="" USE_GOMA="" -for ((i=0; i<="${#args[@]}"; ++i)); do +for ((i="${#args[@]}"-1; i >= 0; --i)); do case ${args[i]} in --arm64) IS_ARM64="1"; unset args[i]; ;; --symbols) IS_SYMBOLS_BUILD="1"; unset args[i]; ;;