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

.bashrc and .zshrc backup fails when the files don't exist #11

Open
ScottG489 opened this issue Mar 12, 2021 · 0 comments
Open

.bashrc and .zshrc backup fails when the files don't exist #11

ScottG489 opened this issue Mar 12, 2021 · 0 comments

Comments

@ScottG489
Copy link
Owner

This seems to happen when the backup happens, then the script fails before the new one is put into place. Then on subsequent runs the backup will fail.

The backing up seems a little dubious, although it may be alright. The right fix to this may just be to have the backup not fail if the original file doesn't exist. This is safe because the reason we do the backup is so we don't blow away the old one/stow doesn't fail to link it. So if it doesn't exist then we're all good.

@ScottG489 ScottG489 changed the title Bashrc backup fails .bashrc and .zshrc backup fails when the files don't exist Mar 12, 2021
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