Skip to content

Commit 582933f

Browse files
committed
Resolve some shellcheck issues
1 parent 57954b6 commit 582933f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ if [ "$INPUT_TFSEC_VERSION" != "latest" ]; then
77
TFSEC_VERSION="/tags/${INPUT_TFSEC_VERSION}"
88
fi
99

10-
wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} -O - | grep -m 1 -o -E "https://.+?tfsec-linux-amd64" | head -n1)" > tfsec-linux-amd64
11-
wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} -O - | grep -m 1 -o -E "https://.+?tfsec_checksums.txt" | head -n1)" > tfsec.checksums
10+
wget -O - -q "$(wget -q "https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION}" -O - | grep -m 1 -o -E "https://.+?tfsec-linux-amd64" | head -n1)" > tfsec-linux-amd64
11+
wget -O - -q "$(wget -q "https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION}" -O - | grep -m 1 -o -E "https://.+?tfsec_checksums.txt" | head -n1)" > tfsec.checksums
1212

1313
grep tfsec-linux-amd64 tfsec.checksums > tfsec-linux-amd64.checksum
1414
sha256sum -c tfsec-linux-amd64.checksum
@@ -19,8 +19,8 @@ if [ "$INPUT_COMMENTER_VERSION" != "latest" ]; then
1919
COMMENTER_VERSION="tags/${INPUT_COMMENTER_VERSION}"
2020
fi
2121

22-
wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION} -O - | grep -o -E "https://.+?commenter-linux-amd64")" > commenter-linux-amd64
23-
wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION} -O - | grep -o -E "https://.+?checksums.txt")" > commenter.checksums
22+
wget -O - -q "$(wget -q "https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION}" -O - | grep -o -E "https://.+?commenter-linux-amd64")" > commenter-linux-amd64
23+
wget -O - -q "$(wget -q "https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION}" -O - | grep -o -E "https://.+?checksums.txt")" > commenter.checksums
2424

2525
grep commenter-linux-amd64 commenter.checksums > commenter-linux-amd64.checksum
2626
sha256sum -c commenter-linux-amd64.checksum
@@ -41,5 +41,5 @@ if [ -n "${INPUT_TFSEC_FORMATS}" ]; then
4141
TFSEC_OUT_OPTION="${TFSEC_OUT_OPTION%.*}"
4242
fi
4343

44-
tfsec --out=${TFSEC_OUT_OPTION} --format=${TFSEC_FORMAT_OPTION} --soft-fail ${TFSEC_ARGS_OPTION} "${INPUT_WORKING_DIRECTORY}"
44+
tfsec --out=${TFSEC_OUT_OPTION} --format="${TFSEC_FORMAT_OPTION}" --soft-fail "${TFSEC_ARGS_OPTION}" "${INPUT_WORKING_DIRECTORY}"
4545
commenter

0 commit comments

Comments
 (0)