-
Notifications
You must be signed in to change notification settings - Fork 175
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
[Feature] Added Update-dots.sh script #473
Conversation
Generally this script choose the files under I won't talk about the problem that you did not use
My apologies, I rechecked the logic and I've found that the position of So, if a file is different with the destination before The problem is that the script is not robust, such as:
And for the exclusion paths, you only considered If you can solve these problem, I think it's OK to be merged. |
Thank you for your feedback.
|
@clsty I updated the script. Could you please review the script again? Thanks! |
The
Another problem is that you need to prompt user what this script is for, and give user chance to exit in case they run this by accident. As for the rest part, after reading through it, it seems OK to me, but I don't have a suitable environment to test it, so I can't tell if there're more problems. Nor have you tested it, right? Else I would not have found out the major problems above. I suggest you to use it by yourself for a couple of days so you will be able to fix/improve some neglected things, if there is any. @end-4 What do you think about this script? |
Good job, great awareness. Makes sense. I tested it, but seems like the wrong way, lol. Thanks, working on it... |
@clsty It's been a while. Anything that must be improved? Encountered no error since. |
I can't find out any problem for now, so I'll merge it. Thank you for contribution. |
Automatically updates the Repository and the dots:
Replaces by default .config and .local files in the home directory.
Checks if user has modified files => Asking before replacing modified files.
You are able to exclude folders from updating. e.g. the "custom" folder
Implemented with Checksums.