Skip to content

Commit 5ac5735

Browse files
Improved Bash idioms in test/cmd/images.sh
Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent a4b9752 commit 5ac5735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cmd/images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ os::cmd::expect_success 'oc create -f test/fixtures/mysql-image-stream-mapping.y
6666
os::cmd::expect_success_and_text 'oc get istag/test:new --template="{{ index .image.dockerImageMetadata.Config.Entrypoint 0 }}"' "docker-entrypoint.sh"
6767
os::cmd::expect_success_and_text 'oc get istag/test:new -o jsonpath={.image.metadata.name}' 'sha256:b2f400f4a5e003b0543decf61a0a010939f3fba07bafa226f11ed7b5f1e81237'
6868
# reference should point to the current repository, and that repository should match the reported dockerImageRepository for pushes
69-
repository=$(oc get is/test -o jsonpath={.status.dockerImageRepository})
69+
repository="$(oc get is/test -o jsonpath={.status.dockerImageRepository})"
7070
os::cmd::expect_success_and_text 'oc get istag/test:new -o jsonpath={.image.dockerImageReference}' "^$repository@sha256:b2f400f4a5e003b0543decf61a0a010939f3fba07bafa226f11ed7b5f1e81237"
7171
os::cmd::expect_success_and_text 'oc get istag/test:new -o jsonpath={.image.dockerImageReference}' "/$project/test@sha256:b2f400f4a5e003b0543decf61a0a010939f3fba07bafa226f11ed7b5f1e81237"
7272

0 commit comments

Comments
 (0)