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

update-repos-list.js doesn't clean up if it fails. #183

Open
pixelzoom opened this issue Feb 22, 2022 · 0 comments
Open

update-repos-list.js doesn't clean up if it fails. #183

pixelzoom opened this issue Feb 22, 2022 · 0 comments
Assignees

Comments

@pixelzoom
Copy link
Contributor

In #180 (comment), @mattpen said:

FYI, running the script also create an unversioned file in my local working copy: phet-info/github-labels/.repos.old.

That file should get removed if update-repos-list.js finishes successfully.

// Clean up
await fs.promises.unlink( '.repos.old' );

In general, scripts/programs should clean up files regardless of whether they encounter errors.

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

No branches or pull requests

2 participants