Skip to content

Commit

Permalink
Properly generate SAFETY_IGNORDE_OPTS for multiple Safety IDs to ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed Jun 3, 2024
1 parent e515cfc commit c562a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ command_test() {
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_IGNORE_OPTS="-i ${SAFETY_IGNORED_IDS//\ /-i\ }"
# From $SAFETY_IGNORED_IDS, generate $SAFETY_IGNORED_OPTS.
SAFETY_IGNORE_OPTS="-i $(echo $SAFETY_IGNORED_IDS | sed s/\ /-i /g)"
fi

execute "$python_binary" -m safety check --full-report "$SAFETY_IGNORE_OPTS"
Expand Down

0 comments on commit c562a70

Please sign in to comment.