File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ find ./docs ./examples -type f \( -name "*.md" -o -name "*.py" -o -name "*.yaml"
2424 echo " Processing file: $file "
2525
2626 # Use sed to replace the version number in the Lambda layer ARN
27- # -i '' : edit files in-place without creating a backup
27+ # -i: edit files in-place without creating a backup
2828 # -E: use extended regular expressions
2929 # The regex matches the layer name and replaces only the version number at the end
30- sed -i ' ' -E " s/(AWSLambdaPowertoolsPythonV3-python[0-9]+-((arm64)|(x86_64)):)[0-9]+/\1$new_version /g" " $file "
30+ sed -i -E " s/(AWSLambdaPowertoolsPythonV3-python[0-9]+-((arm64)|(x86_64)):)[0-9]+/\1$new_version /g" " $file "
3131 if [ $? -eq 0 ]; then
3232 echo " Updated $file successfully"
3333 grep " arn:aws:lambda:" " $file "
You can’t perform that action at this time.
0 commit comments