-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 option to append template to existing config #1723
Conversation
What also bothers me a bit is that the two options It would be better, in my opinion, if the Maybe this can be achieved by another PR. What do you think? |
We can always |
Now I have come to test my changes and write tests. Unfortunately I'm getting a |
I found my mistake and corrected it. Now the feature can be merged, if the review is passed. ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @egvimo
I left you a comment, lemme know what you think!
install.sh
Outdated
@@ -148,6 +163,9 @@ if ! [[ $silent ]] && ! [[ $no_modify_config ]]; then | |||
;; | |||
esac | |||
done | |||
elif [[ $silent ]] && [[ $append_to_config ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove the while ! [ $silent ]
check in line 150
in favor of while ! [ $append_to_config ]
, and remove [[ silent ]]
check here. This will cause interactive mode to also automatically append if the option is specified
@NoahGorny I've done the changes from your comment. |
Great job @egvimo ! |
* Add option to append template to existing config * Add test for append-to-config option Co-authored-by: Egor Moor <egor.moor@edag-ps.com>
My first draft for the option to append template to existing config file in silent mode.
Closes #1720