diff --git a/modules/swagger-codegen/src/main/resources/bash/client.mustache b/modules/swagger-codegen/src/main/resources/bash/client.mustache index d97b85bafb2..92e62eaa55d 100644 --- a/modules/swagger-codegen/src/main/resources/bash/client.mustache +++ b/modules/swagger-codegen/src/main/resources/bash/client.mustache @@ -407,8 +407,8 @@ build_request_path() { fi # First replace all path parameters in the path - local path_regex="(.*)(\\{$pparam\\})(.*)" for pparam in "${path_params[@]}"; do + local path_regex="(.*)(\\{$pparam\\})(.*)" if [[ $path_template =~ $path_regex ]]; then path_template=${BASH_REMATCH[1]}${operation_parameters[$pparam]}${BASH_REMATCH[3]} fi diff --git a/samples/client/petstore/bash/petstore-cli b/samples/client/petstore/bash/petstore-cli index ea797959531..f47056aa43d 100755 --- a/samples/client/petstore/bash/petstore-cli +++ b/samples/client/petstore/bash/petstore-cli @@ -509,8 +509,8 @@ build_request_path() { fi # First replace all path parameters in the path - local path_regex="(.*)(\\{$pparam\\})(.*)" for pparam in "${path_params[@]}"; do + local path_regex="(.*)(\\{$pparam\\})(.*)" if [[ $path_template =~ $path_regex ]]; then path_template=${BASH_REMATCH[1]}${operation_parameters[$pparam]}${BASH_REMATCH[3]} fi