Fix 'chmod' for macOS Monterey 12.3 (#347)

This commit is contained in:
Jesus Galvan
2022-03-16 18:15:18 +01:00
committed by GitHub
parent 86716b3432
commit dc01038efe

View File

@@ -432,7 +432,7 @@ function cp_permissions() {
# Copy the perms of $1 onto $2 .. end.
case $(uname -s) in
Darwin )
chmod $( stat -f '%p' "$1" ) "${@:2}"
chmod $( stat -f '%Lp' "$1" ) "${@:2}"
;;
FreeBSD | NetBSD )
chmod $( stat -f '%p' "$1" | sed -e "s/^100//" ) "${@:2}"