Skip to content

Commit

Permalink
entrypoint: Remove \r from ignoreUnfixed option (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Simarpreet Singh <simar@linux.com>
  • Loading branch information
simar7 committed Feb 27, 2021
1 parent 7294c6a commit bceef37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export artifactRef="${imageRef}"
if [ "${scanType}" = "fs" ];then
artifactRef=$(echo $scanRef | tr -d '\r')
fi
ignoreUnfixed=$(echo $ignoreUnfixed | tr -d '\r')

ARGS=""
if [ $format ];then
Expand All @@ -64,5 +65,5 @@ if [ $output ];then
ARGS="$ARGS --output $output"
fi

echo "Runnin trivy with options" "${ARGS}" "${artifactRef}"
echo "Running trivy with options: " "${ARGS}" "${artifactRef}"
trivy ${scanType} $ARGS ${artifactRef}

0 comments on commit bceef37

Please sign in to comment.