Skip to content

Commit 1766d7c

Browse files
committed
Fix for printf treating -m as an arg
1 parent 20d3b33 commit 1766d7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ubuntu/16.04/usr/local/share/bootstrap/common_functions.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ function set_path_permissions() {
224224

225225
case "$PERMISSION_MODE" in
226226
facl)
227-
setfacl -R $(printf '-m user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
228-
$(printf '-m default:user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
229-
$(printf '-m user:%s:rX ' "${READABLE_USERS[@]}") \
230-
$(printf '-m default:user:%s:rX ' "${READABLE_USERS[@]}") \
227+
setfacl -R $(printf -- '-m user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
228+
$(printf -- '-m default:user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
229+
$(printf -- '-m user:%s:rX ' "${READABLE_USERS[@]}") \
230+
$(printf -- '-m default:user:%s:rX ' "${READABLE_USERS[@]}") \
231231
"${PATHS[@]}"
232232
chmod -R ug+rw,o-rwx "${PATHS[@]}"
233233
;;

0 commit comments

Comments
 (0)