Skip to content

Commit d7669f2

Browse files
committed
template ro removes write permission for all
Signed-off-by: Tin Lai <[email protected]>
1 parent 4f8554b commit d7669f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yadm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +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"
543+
[ "$(config --bool yadm.template-read-only)" == "true" ] && chmod a-w "$output"
544544
}
545545

546546
# ****** yadm Commands ******

0 commit comments

Comments
 (0)