File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ name: terraform-aws-lambda-layer
99
1010# Tags of this project
1111tags :
12+ - aws
13+ - aws-lambda
14+ - aws-lambda-layer
1215 - terraform
1316 - terraform-modules
1417
@@ -65,9 +68,11 @@ usage: |-
6568 source_type = "python"
6669
6770 rsync_pattern = [
68- "--exclude=**tests**"
69- "--exclude="**__pycache__**"
70- "--include=*.py"
71+ "--exclude='**tests**'"
72+ "--exclude="'**__pycache__**'"
73+ "--include=module/{a,b,c}/"
74+ "--include='*.py'"
75+ "--exclude='module/*'"
7176 ]
7277 }
7378 ```
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ build_from_source_dir() {
6666 mkdir -p " $dist_dir "
6767
6868 pushd " ${SOURCE_DIR} " > /dev/null || exit
69- # shellcheck disable=SC2086
70- rsync -Ravz ${RSYNC_PATTERN} --exclude= " * " --exclude=" *.*" " ." " $dist_dir "
69+ # shellcheck disable=SC2046
70+ rsync -Ravz $( eval echo " $RSYNC_PATTERN " ) --exclude=" *.*" " ." " $dist_dir "
7171 popd > /dev/null || exit
7272}
7373
You can’t perform that action at this time.
0 commit comments