File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ SCRIPTS_DIR=${SCRIPTS_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
1212echo " 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."
1718else
18- echo " Resetting database and scanning artifacts"
19+ echo " resetAndScanChanged: Detected change ( ${changeDetectionReturnCode} ). Resetting database and scanning artifacts. "
1920 source " ${SCRIPTS_DIR} /resetAndScan.sh"
2021fi
You can’t perform that action at this time.
0 commit comments