Skip to content

Commit c47fc51

Browse files
committed
Add ShellCheck for root-level scripts
1 parent e3c0ee3 commit c47fc51

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ lint-githubactions:
3737
actionlint
3838

3939
lint-githubaction-scripts:
40+
shellcheck scripts/*.sh
4041
shellcheck .github/scripts/*.sh
4142

4243
test: compile-node

scripts/load-kb.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ pushd $DOCS_DIR
5151
# download the docs
5252
for doc in "${DOC_LIST[@]}"
5353
do
54-
curl -L -o "$DOCS_DIR/$(basename $doc)" $doc
54+
curl -L -o "$DOCS_DIR/$(basename "$doc")" "$doc"
5555
done
5656

57-
aws s3 sync $DOCS_DIR $S3_URI
57+
aws s3 sync $DOCS_DIR "$S3_URI"
5858
# popd
5959
rm -rf $DOCS_DIR
6060

6161
# sync kb
62-
aws bedrock-agent start-ingestion-job --knowledge-base-id $KB_ID --data-source-id $DS_ID
62+
aws bedrock-agent start-ingestion-job --knowledge-base-id "$KB_ID" --data-source-id "$DS_ID"

0 commit comments

Comments
 (0)