1
0
Fork 0
mirror of synced 2024-07-03 20:01:08 -04:00

add config for yadm to create read-only template output

Signed-off-by: Tin Lai <oscar@tinyiu.com>
This commit is contained in:
Tin Lai 2023-05-29 14:32:37 +10:00
parent e4bb8a79a4
commit 79043cb4e5

1
yadm
View file

@ -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 ******