Skip to content

Commit 864edba

Browse files
committed
Print change detection return value for debugging
1 parent 7cc1961 commit 864edba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/resetAndScanChanged.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ SCRIPTS_DIR=${SCRIPTS_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
1212
echo "resetAndScanChanged SCRIPTS_DIR=$SCRIPTS_DIR"
1313

1414
# Scan and analyze Artifacts when they were changed
15-
if [[ $( source $SCRIPTS_DIR/detectChangedArtifacts.sh ) == "0" ]] ; then
16-
echo "Artifacts unchanged. Scan skipped."
15+
changeDetectionReturnCode=$( source "$SCRIPTS_DIR/detectChangedArtifacts.sh" )
16+
if [[ "${changeDetectionReturnCode}" == "0" ]] ; then
17+
echo "resetAndScanChanged: Artifacts unchanged. Scan skipped."
1718
else
18-
echo "Resetting database and scanning artifacts"
19+
echo "resetAndScanChanged: Detected change (${changeDetectionReturnCode}). Resetting database and scanning artifacts."
1920
source "${SCRIPTS_DIR}/resetAndScan.sh"
2021
fi

0 commit comments

Comments
 (0)