Skip to content

Commit

Permalink
Shellcheck fixes and more.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed May 28, 2024
1 parent f6e873c commit 40291f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ command_test() {
execute "$python_binary" -m pip install "${PIP_ARGS[@]}" \
safety=="$SAFETY_VERSION"

SAFETY_IGNORE_OPTS=""
if [ -n "${SAFETY_IGNORED_IDS-}" ]; then
(>&2 echo "Following Safety DB IDs are to be excepted from checks:")
(>&2 echo -e "\t${SAFETY_IGNORED_IDS}")
# From $SAFETY_IGNORED_ID, generate $SAFETY_IGNORED_OPTS..
SAFETY_IGNORED_OPTS="${SAFETY_IGNORED_IDS//\ /-i\ }"
SAFETY_IGNORE_OPTS="-i ${SAFETY_IGNORED_IDS//\ /-i\ }"
fi

execute "$python_binary" -m safety check --full-report \
-i "$SAFETY_IGNORED_OPTS"
execute "$python_binary" -m safety check --full-report "$SAFETY_IGNORE_OPTS"
execute popd
echo "::endgroup::"

Expand Down

0 comments on commit 40291f7

Please sign in to comment.