Skip to content

Commit 30a1a32

Browse files
authored
Fix awk to skip empty line (#10)
1 parent a188f23 commit 30a1a32

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,17 @@ version: 2.1
187187
setup: true
188188
189189
orbs:
190-
split-config: bufferings/[email protected]
191-
path-filtering: circleci/[email protected]
190+
# Please specify the latest version
191+
split-config: bufferings/[email protected]
192+
path-filtering: circleci/[email protected]
192193
193194
workflows:
194195
generate-config:
195196
jobs:
196197
- split-config/generate-config:
197198
find-config-regex: .*/\.circleci/.*\.yml
198199
generated-config-path: /tmp/generated_config.yml
200+
continuation: false
199201
post-steps:
200202
- persist_to_workspace:
201203
root: /tmp

src/scripts/generate-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo
88
echo "Generated YAML ==="
99

1010
cat "${PARAM_CONFIG_LIST_PATH}" \
11-
| awk '{printf "\"%s\" ", $0}' \
11+
| awk 'NF {printf "\"%s\" ", $0}' \
1212
| xargs -0 -I {} sh -c 'cue export {} --out yaml' \
1313
| tee "${PARAM_GENERATED_CONFIG_PATH}"
1414

0 commit comments

Comments
 (0)