Fix shellcheck failures in test/cmd/g.*sh

This commit is contained in:
Xiangyang Chu
2019-05-17 15:40:14 +08:00
parent afd928b8bc
commit eee32a6a88
4 changed files with 28 additions and 28 deletions

View File

@@ -230,7 +230,7 @@ function check-curl-proxy-code()
function kubectl-with-retry()
{
ERROR_FILE="${KUBE_TEMP}/kubectl-error"
preserve_err_file=${PRESERVE_ERR_FILE-false}
preserve_err_file=${PRESERVE_ERR_FILE:-false}
for count in {0..3}; do
kubectl "$@" 2> ${ERROR_FILE} || true
if grep -q "the object has been modified" "${ERROR_FILE}"; then