Skip to content

Commit

Permalink
Use "set -xe" for exiting on errors (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimonas Sotirchos <[email protected]>
  • Loading branch information
kimwnasptd authored Aug 23, 2024
1 parent ee758d5 commit 4a03052
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/images/get-all-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# charm's repository one by one using specified branch and collects images referred by that charm
# using that repository's image collection script
#
set -xe

BUNDLE_FILE=$1
IMAGES=()
# retrieve all repositories and branches for CKF
Expand Down
3 changes: 3 additions & 0 deletions scripts/images/get-images.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/bash

set -xe

BUNDLE_FILE=$1
IMAGES=()
REPOS=($(grep _github_repo_name $BUNDLE_FILE | awk '{print $2}' | sort --unique))
Expand Down
1 change: 1 addition & 0 deletions scripts/images/scan-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#
# Usage: scan.sh <file>
#
set -xe

FILE=$1
TRIVY_REPORTS_DIR="trivy-reports"
Expand Down

0 comments on commit 4a03052

Please sign in to comment.