Skip to content

Commit 79043cb

Browse files
committed
add config for yadm to create read-only template output
Signed-off-by: Tin Lai <[email protected]>
1 parent e4bb8a7 commit 79043cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yadm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ function move_file() {
540540

541541
mv -f "$temp_file" "$output"
542542
copy_perms "$input" "$output"
543+
[ "$(config --bool yadm.template-read-only)" == "true" ] && chmod -w "$output"
543544
}
544545

545546
# ****** yadm Commands ******

0 commit comments

Comments
 (0)