Skip to content

Commit

Permalink
remove stderr from being printed in the build log
Browse files Browse the repository at this point in the history
  • Loading branch information
djsly committed Oct 18, 2024
1 parent 6585089 commit f715968
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/kubelet/generate-kubelet-flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ retrycmd_get_tarball() {
tar_retries=$1; wait_sleep=$2; tarball=$3; url=$4
echo "${tar_retries} retries"
for i in $(seq 1 $tar_retries); do
tar -tzf $tarball && break || \
if [ -f $tarball ]; then
tar -tzf $tarball
if [ $? -eq 0 ]; then
break
fi
fi
if [ $i -eq $tar_retries ]; then
return 1
else
Expand Down

0 comments on commit f715968

Please sign in to comment.