Skip to content

Commit 6026e63

Browse files
committed
Specifing --output type for az storage calls in ci-build-kubernetes.sh
Signed-off-by: Mark Rossetti <[email protected]>
1 parent f109d02 commit 6026e63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/ci-build-kubernetes.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ setup() {
8181
}
8282

8383
main() {
84-
if [[ "$(az storage container exists --name "${JOB_NAME}" --query exists)" == "false" ]]; then
84+
if [[ "$(az storage container exists --name "${JOB_NAME}" --query exists --output tsv)" == "false" ]]; then
8585
echo "Creating ${JOB_NAME} storage container"
8686
az storage container create --name "${JOB_NAME}" > /dev/null
8787
az storage container set-permission --name "${JOB_NAME}" --public-access container > /dev/null
@@ -139,14 +139,14 @@ can_reuse_artifacts() {
139139
done
140140

141141
for BINARY in "${BINARIES[@]}"; do
142-
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/linux/amd64/${BINARY}" --query exists)" == "false" ]]; then
142+
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/linux/amd64/${BINARY}" --query exists --output tsv)" == "false" ]]; then
143143
echo "false" && return
144144
fi
145145
done
146146

147147
if [[ "${TEST_WINDOWS:-}" == "true" ]]; then
148148
for BINARY in "${WINDOWS_BINARIES[@]}"; do
149-
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/windows/amd64/${BINARY}.exe" --query exists)" == "false" ]]; then
149+
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/windows/amd64/${BINARY}.exe" --query exists --output tsv)" == "false" ]]; then
150150
echo "false" && return
151151
fi
152152
done

0 commit comments

Comments
 (0)