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

Add backup option to link action #349

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

Conversation

hansegard
Copy link

@hansegard hansegard commented Sep 27, 2023

Added a backup option to the link action, an option which defaults to false.
If backup is set to true, existing files/directories will be backed up by renaming the file on the format
<original-filename>.dotbot-backup.

This is useful for distributions where for example .bashrc is created during installation with sane defaults and you don't want to manually back them up.

  • Added option to plugin
  • Added unit tests
  • Added information about option in README + fixed formatting of options table

Added backup option (defaults to false) which will cause dotbot
to backup already existing files by renaming them with suffix
.dotbot-backup. Added unit tests and updated README.
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.

1 participant