Skip to content

Commit 366870a

Browse files
committed
feat(build): add brace expansion option
1 parent 96a3bd9 commit 366870a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name: terraform-aws-lambda-layer
99

1010
# Tags of this project
1111
tags:
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
```

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)