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 conffiles template support #97

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

Conversation

gigafied
Copy link
Contributor

No description provided.

@gigafied gigafied force-pushed the feature/conffiles branch 2 times, most recently from b3115ac to ea9f16d Compare August 17, 2018 20:12
@@ -730,6 +747,8 @@ replace_vars() {
declare -r target_file="$2"
declare -r permissions="$3"

lf=$'\n'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is lf being set here? Can you add a comment please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sed on macOS does not properly interpret \n in the replace pattern so we either need to do a literal line break (ugly) or assign \n to a var and do it that way.

@steevhise
Copy link

Is this PR going to be accepted? I think it's a good idea (I need configurable conf files too).

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.

3 participants