File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 30
30
# If you have a specific CLO or EO image you want to use, specify them by using
31
31
# CLO_IMAGE and EO_IMAGE.
32
32
33
- set -eux
33
+ set -euo pipefail
34
+ if [ " ${DEBUG:- } " = " true" ]; then
35
+ set -x
36
+ fi
34
37
35
38
logging_err_exit () {
36
39
set +e
@@ -186,12 +189,12 @@ construct_image_name() {
186
189
# stable is the imagestream containing the images built for this PR, or
187
190
# otherwise the most recent image
188
191
if [ -n " ${IMAGE_FORMAT:- } " ] ; then
189
- if [ " ${LOGGING_IMAGE_STREAM:- } " != ' stable' ] ; then
192
+ if [ -n " ${LOGGING_IMAGE_STREAM :- } " -a " ${LOGGING_IMAGE_STREAM:- } " != ' stable' ] ; then
190
193
local match=/stable:
191
194
local replace=" /${LOGGING_IMAGE_STREAM} :"
192
195
IMAGE_FORMAT=${IMAGE_FORMAT/ $match / $replace }
193
196
194
- if [ " ${LOGGING_IMAGE_STREAM_NS:- } " != ' ocp' ] ; then
197
+ if [ -n " ${LOGGING_IMAGE_STREAM_NS :- } " -a " ${LOGGING_IMAGE_STREAM_NS:- } " != ' ocp' ] ; then
195
198
local ns=$( echo ${IMAGE_FORMAT} | cut -d ' /' -f 2)
196
199
IMAGE_FORMAT=${IMAGE_FORMAT/ $ns / $LOGGING_IMAGE_STREAM_NS }
197
200
fi
You can’t perform that action at this time.
0 commit comments