Skip to content

Commit e44de94

Browse files
authored
Update buildscript.sh
1 parent 7053db9 commit e44de94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildscript.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ scan_using_grype() { # $1 = Name, $2 = Repo/Name:tag or /Path --select-cataloger
230230
if [[ \"\$3\" != \"\" ]]; then
231231
read -p 'Press enter to start attestation' && echo
232232
echo 'Starting Syft...'
233-
TMPDIR=$docker_data/syft syft attest --output spdx-json docker.io/\$REPO/\$1:\$3
233+
TMPDIR=$docker_data/syft syft attest --output spdx-json docker.io/\$REPO/\$1:\$3 || \
234+
TMPDIR=$docker_data/syft syft attest --output spdx-json docker.io/\$REPO/\$1:\$3 || exit 1
234235
echo
235236
else
236237
echo 'Starting Syft...'

0 commit comments

Comments
 (0)