Use xattr in cryptest-autotools.sh

pull/867/head
Jeffrey Walton 2019-07-04 16:06:51 -04:00
parent 6afa6fc213
commit ae04195d1f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 7 additions and 5 deletions

View File

@ -122,8 +122,9 @@ chmod +w config.sub
mv config.sub.new config.sub mv config.sub.new config.sub
chmod +x config.sub chmod +x config.sub
if [[ "$IS_DARWIN" -ne 0 ]]; then if [[ "$IS_DARWIN" -ne 0 ]] && [[ -n $(command -v xattr) ]]; then
xattrib -r com.apple.quarantine config.sub &>/dev/null echo "Removing config.sub quarantine"
xattr -d "com.apple.quarantine" config.sub &>/dev/null
fi fi
echo "Updating config.guess" echo "Updating config.guess"
@ -134,8 +135,9 @@ chmod +w config.guess
mv config.guess.new config.guess mv config.guess.new config.guess
chmod +x config.guess chmod +x config.guess
if [[ "$IS_DARWIN" -ne 0 ]]; then if [[ "$IS_DARWIN" -ne 0 ]] && [[ -n $(command -v xattr) ]]; then
xattrib -r com.apple.quarantine config.guess &>/dev/null echo "Removing config.guess quarantine"
xattr -d "com.apple.quarantine" config.guess &>/dev/null
fi fi
############################################################################# #############################################################################