Skip to content

Commit 9c14e67

Browse files
committed
Fix for printf treating -m as an arg
1 parent 50610d9 commit 9c14e67

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
@@ -262,10 +262,10 @@ function set_path_permissions() {
262262

263263
case "$PERMISSION_MODE" in
264264
facl)
265-
setfacl -R $(printf '-m user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
266-
$(printf '-m default:user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
267-
$(printf '-m user:%s:rX ' "${READABLE_USERS[@]}") \
268-
$(printf '-m default:user:%s:rX ' "${READABLE_USERS[@]}") \
265+
setfacl -R $(printf -- '-m user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
266+
$(printf -- '-m default:user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
267+
$(printf -- '-m user:%s:rX ' "${READABLE_USERS[@]}") \
268+
$(printf -- '-m default:user:%s:rX ' "${READABLE_USERS[@]}") \
269269
"${PATHS[@]}"
270270
chmod -R ug+rw,o-rwx "${PATHS[@]}"
271271
;;

0 commit comments

Comments
 (0)