Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 019743a

Browse files
authored
Fix bash condition in endtoend script (#44)
* Fix bash condition in endtoend script Signed-off-by: Haytham Abuelfutuh <[email protected]> * PR Comment Signed-off-by: Haytham Abuelfutuh <[email protected]>
1 parent a8bd0d2 commit 019743a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

boilerplate/flyte/end2end/end2end.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ pushd ${OUT}
1818
if [ ! -z "$IMAGE" ];
1919
then
2020
kind load docker-image ${IMAGE}
21-
if [ ${IMAGE_NAME} -eq "flytepropeller" ]
21+
if [ "${IMAGE_NAME}" == "flytepropeller" ]
2222
then
23-
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" ${OUT}/kustomize/base/propeller/deployment.yaml
23+
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" "${OUT}"/kustomize/base/propeller/deployment.yaml
2424
fi
2525

26-
if [ ${IMAGE} -eq "flyteadmin" ]
26+
if [ "${IMAGE_NAME}" == "flyteadmin" ]
2727
then
28-
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" ${OUT}/kustomize/base/admindeployment/deployment.yaml
28+
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" "${OUT}"/kustomize/base/admindeployment/deployment.yaml
2929
fi
3030
fi
3131

0 commit comments

Comments
 (0)