From 1d2b0bb3a522cfeb92c4695d7d4ef5a6a0e9c13b Mon Sep 17 00:00:00 2001 From: Tommy R Date: Mon, 13 Jul 2020 10:04:09 -0700 Subject: [PATCH] Fix the unquarantine behavior on OSX. - Using print0 but without the parenthesis, find only outputs one filename. - Also added the .framework files to the unquarantine list. --- package/darwin/dfhack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/darwin/dfhack b/package/darwin/dfhack index 1c2c7a175..5241f1a67 100755 --- a/package/darwin/dfhack +++ b/package/darwin/dfhack @@ -13,7 +13,7 @@ fi # attempt to remove quarantine flag: https://github.com/DFHack/dfhack/issues/1465 if ! test -f hack/quarantine-removed; then - find hack/ libs/ dwarfort.exe -name '*.dylib' -or -name '*.exe' -print0 | xargs -0 xattr -d com.apple.quarantine 2>&1 | grep -iv 'no such xattr' + find hack/ libs/ dwarfort.exe \( -name '*.dylib' -or -name '*.framework' -or -name '*.exe' \) -print0 | xargs -0 xattr -d com.apple.quarantine 2>&1 | grep -iv 'no such xattr' echo "quarantine flag removed on $(date); remove this file to re-run" > hack/quarantine-removed fi