mirror of https://github.com/zulip/zulip.git
9 lines
267 B
ObjectPascal
9 lines
267 B
ObjectPascal
|
define common::append_if_no_such_line($file, $line, $refreshonly = 'false') {
|
||
|
exec { "/bin/echo '$line' >> '$file'":
|
||
|
unless => "/bin/grep -Fxqe '$line' '$file'",
|
||
|
path => "/bin",
|
||
|
refreshonly => $refreshonly,
|
||
|
subscribe => File[$file],
|
||
|
}
|
||
|
}
|