Skip to content

Commit 2cd009c

Browse files
committed
Fix for printf treating -m as an arg
1 parent 029af5b commit 2cd009c

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

245245
case "$PERMISSION_MODE" in
246246
facl)
247-
setfacl -R $(printf '-m user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
248-
$(printf '-m default:user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
249-
$(printf '-m user:%s:rX ' "${READABLE_USERS[@]}") \
250-
$(printf '-m default:user:%s:rX ' "${READABLE_USERS[@]}") \
247+
setfacl -R $(printf -- '-m user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
248+
$(printf -- '-m default:user:%s:rwX ' "${WRITEABLE_USERS[@]}") \
249+
$(printf -- '-m user:%s:rX ' "${READABLE_USERS[@]}") \
250+
$(printf -- '-m default:user:%s:rX ' "${READABLE_USERS[@]}") \
251251
"${PATHS[@]}"
252252
chmod -R ug+rw,o-rwx "${PATHS[@]}"
253253
;;

0 commit comments

Comments
 (0)