From dc01038efe4b43a3c459a32ffff00e3b9c9ef02f Mon Sep 17 00:00:00 2001 From: Jesus Galvan <2798097+jsgv@users.noreply.github.com> Date: Wed, 16 Mar 2022 18:15:18 +0100 Subject: [PATCH] Fix 'chmod' for macOS Monterey 12.3 (#347) --- bin/_blackbox_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index b935f5d..7095975 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -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}"