Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the availability of scripts in bad network #614

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mffseal
Copy link

@mffseal mffseal commented Sep 19, 2022

In the case of poor network environment “git clone” command may partially fail and leave files. This will make the next retry fail
cause the directory already exists. The solution is to try to delete the corresponding directory before run "git clone".

@akx
Copy link
Contributor

akx commented Feb 3, 2023

A better solution would be to use $(mktemp -d) to clone things into guaranteedly unique paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants