Skip to content

Commit 80d7bcb

Browse files
committed
removed clearMacAppExtendedAttributes
1 parent c7f19e4 commit 80d7bcb

File tree

4 files changed

+0
-87
lines changed

4 files changed

+0
-87
lines changed

libraries/util.bash

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,32 +1072,6 @@ function installPortableBinary()
10721072
# MAC UTILITIES #
10731073
#################
10741074

1075-
function clearMacAppExtendedAttributes()
1076-
{
1077-
local -r headerMessage="${1}"
1078-
local -r applicationPaths=("${@:2}")
1079-
1080-
checkRequireMacSystem
1081-
1082-
if [[ "${#applicationPaths[@]}" -gt '0' ]]
1083-
then
1084-
header "${headerMessage}"
1085-
fi
1086-
1087-
local applicationPath=''
1088-
1089-
for applicationPath in "${applicationPaths[@]}"
1090-
do
1091-
# Find Non-Default Apple App
1092-
1093-
if [[ "$(ls -d -l -O "${applicationPath}" | grep -E '\s+restricted\s+')" = '' ]]
1094-
then
1095-
info "clearing extended attributes of '${applicationPath}'"
1096-
xattr -c -r -s "${applicationPath}"
1097-
fi
1098-
done
1099-
}
1100-
11011075
function closeMacApplications()
11021076
{
11031077
local -r headerMessage="${1}"

tools/clear-app-extended-attributes.bash

Lines changed: 0 additions & 54 deletions
This file was deleted.

tools/install-brew-applications.bash

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ function installBrewPackage()
8989
sudo "$(dirname "${BASH_SOURCE[0]}")/../cookbooks/${packageName}/recipes/post-install.bash"
9090
fi
9191
done
92-
93-
if [[ "${packageType}" = 'cask' && "${#packageNameList[@]}" -gt '0' ]]
94-
then
95-
sudo "$(dirname "${BASH_SOURCE[0]}")/clear-app-extended-attributes.bash"
96-
fi
9792
}
9893

9994
function install()

tools/install-mas-applications.bash

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ function install()
5959
then
6060
header 'UPGRADING STORE APPLICATIONS'
6161
mas upgrade
62-
63-
sudo "$(dirname "${BASH_SOURCE[0]}")/clear-app-extended-attributes.bash"
6462
fi
6563
}
6664

0 commit comments

Comments
 (0)