Skip to content

Commit

Permalink
Properly generate SAFETY_IGNORDE_OPTS for multiple Safety IDs to igno…
Browse files Browse the repository at this point in the history
…re, take two.
  • Loading branch information
dumol committed Jun 3, 2024
1 parent c562a70 commit bf771c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ command_test() {
(>&2 echo "Following Safety DB IDs are to be excepted from checks:")
(>&2 echo -e "\t${SAFETY_IGNORED_IDS}")
# From $SAFETY_IGNORED_IDS, generate $SAFETY_IGNORED_OPTS.
SAFETY_IGNORE_OPTS="-i $(echo $SAFETY_IGNORED_IDS | sed s/\ /-i /g)"
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 bf771c3

Please sign in to comment.