add config for yadm to create read-only template output
Signed-off-by: Tin Lai <oscar@tinyiu.com>
This commit is contained in:
parent
76ce3defea
commit
4f8554ba29
1 changed files with 1 additions and 0 deletions
1
yadm
1
yadm
|
@ -540,6 +540,7 @@ function move_file() {
|
|||
|
||||
mv -f "$temp_file" "$output"
|
||||
copy_perms "$input" "$output"
|
||||
[ "$(config --bool yadm.template-read-only)" == "true" ] && chmod -w "$output"
|
||||
}
|
||||
|
||||
# ****** yadm Commands ******
|
||||
|
|
Loading…
Reference in a new issue