Skip to content

Commit e0e7bdb

Browse files
committed
Addressed PR review comments.
1 parent fbb0078 commit e0e7bdb

File tree

1 file changed

+2
-2
lines changed
  • operator/src/main/resources/scripts

1 file changed

+2
-2
lines changed

operator/src/main/resources/scripts/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ function checkAuxiliaryImage() {
723723

724724
# The container .out files embed their container name, the names will sort in the same order in which the containers ran
725725
out_files=$(ls -1 $AUXILIARY_IMAGE_PATH/auxiliaryImageLogs/*.out 2>/dev/null | sort --version-sort)
726-
if [ -z ${out_files} ]; then
726+
if [ -z "${out_files}" ]; then
727727
trace SEVERE "Auxiliary Image: Assertion failure. No files found in '$AUXILIARY_IMAGE_PATH/auxiliaryImageLogs/*.out'"
728728
return 1
729729
fi
@@ -744,7 +744,7 @@ function checkAuxiliaryImage() {
744744
trace "Auxiliary Image: End of '${out_file}' contents"
745745
done
746746
[ "${severe_found}" = "true" ] && return 1
747-
[ -z "$(ls -A $AUXILIARY_IMAGE_PATH)" ] \
747+
[ -z "$(ls -A $AUXILIARY_IMAGE_PATH 2>/dev/null | grep -v auxiliaryImageLogs)" ] \
748748
&& trace SEVERE "Auxiliary Image: No files found in '$AUXILIARY_IMAGE_PATH'. " \
749749
"Do your auxiliary images have files in their '$AUXILIARY_IMAGE_PATH' directories? " \
750750
"This path is configurable using the domain resource 'spec.auxiliaryImageVolumes.mountPath' attribute." \

0 commit comments

Comments
 (0)