From 78883c933693d41c46a823e704b002e014e82a92 Mon Sep 17 00:00:00 2001 From: Goutham Pratapa Date: Mon, 22 Apr 2024 09:34:58 +0530 Subject: [PATCH] [fix]: fix shell scripts in aws_ami (#32824) ## Summary by CodeRabbit - **Bug Fixes** - Updated the loop condition in the URL encoding functionality for improved reliability. --- deploy/aws_ami/first-time-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/aws_ami/first-time-setup.sh b/deploy/aws_ami/first-time-setup.sh index aa7c58f818..1299e0915d 100755 --- a/deploy/aws_ami/first-time-setup.sh +++ b/deploy/aws_ami/first-time-setup.sh @@ -48,7 +48,7 @@ urlencode() { LC_COLLATE=C local length="${#1}" - for (( i = 0; i < length; i++ )); do + for (( i = 0; i < $length; i++ )); do local c="${1:i:1}" case $c in [a-zA-Z0-9.~_-]) printf "$c" ;;