Skip to content

Commit c146dba

Browse files
author
Dominik Rosiek
committed
fix: fix string comparison
Signed-off-by: Dominik Rosiek <[email protected]>
1 parent 09f0220 commit c146dba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/submit_image.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@ fi
2828
AUTH_CONTENT="${AUTH_CONTENT}"
2929
readonly PLATFORM="${PLATFORM:-amd64}"
3030

31-
if [[ "${CONTAINER_REGISTRY_KEY}"=="null" ]]; then
32-
echo "CONTAINER_REGISTRY_KEY is null $(echo ${CONTAINER_REGISTRY_KEY} | head -c4)"
33-
fi
34-
if [[ -z "${CONTAINER_REGISTRY_KEY}" ]]; then
35-
echo "CONTAINER_REGISTRY_KEY is empty"
36-
fi
37-
38-
if [[ -z "${CONTAINER_REGISTRY_KEY}" || "${CONTAINER_REGISTRY_KEY}"=="null" ]]; then
31+
if [[ -z "${CONTAINER_REGISTRY_KEY}" || "${CONTAINER_REGISTRY_KEY}" == "null" ]]; then
3932
echo "Invalid CONTAINER_REGISTRY_KEY. Assuming that the original registry should be used and just submitting results"
4033

4134
# submit image

0 commit comments

Comments
 (0)