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

revup -f fails if no env.bat/ps1 exists #29

Open
paroxysm opened this issue Mar 1, 2022 · 0 comments
Open

revup -f fails if no env.bat/ps1 exists #29

paroxysm opened this issue Mar 1, 2022 · 0 comments

Comments

@paroxysm
Copy link

paroxysm commented Mar 1, 2022

The "append_env" function tries to write to these files but does not pass the create flag in order to ensure they get created if they're missing. W/o the create flag, if those files are missing, you get a cryptic
Critical error, aborting The system cannot find the file specified. (os error 2)

To remedy this, simply modify the file open options to add the create flag like so:
let mut env_file = std::fs::OpenOptions::new().create(true).append(true).open("env.bat")?;

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

No branches or pull requests

1 participant