Skip to content

Commit

Permalink
removed clearMacAppExtendedAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed May 6, 2021
1 parent c7f19e4 commit 80d7bcb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 87 deletions.
26 changes: 0 additions & 26 deletions libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1072,32 +1072,6 @@ function installPortableBinary()
# MAC UTILITIES #
#################

function clearMacAppExtendedAttributes()
{
local -r headerMessage="${1}"
local -r applicationPaths=("${@:2}")

checkRequireMacSystem

if [[ "${#applicationPaths[@]}" -gt '0' ]]
then
header "${headerMessage}"
fi

local applicationPath=''

for applicationPath in "${applicationPaths[@]}"
do
# Find Non-Default Apple App

if [[ "$(ls -d -l -O "${applicationPath}" | grep -E '\s+restricted\s+')" = '' ]]
then
info "clearing extended attributes of '${applicationPath}'"
xattr -c -r -s "${applicationPath}"
fi
done
}

function closeMacApplications()
{
local -r headerMessage="${1}"
Expand Down
54 changes: 0 additions & 54 deletions tools/clear-app-extended-attributes.bash

This file was deleted.

5 changes: 0 additions & 5 deletions tools/install-brew-applications.bash
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ function installBrewPackage()
sudo "$(dirname "${BASH_SOURCE[0]}")/../cookbooks/${packageName}/recipes/post-install.bash"
fi
done

if [[ "${packageType}" = 'cask' && "${#packageNameList[@]}" -gt '0' ]]
then
sudo "$(dirname "${BASH_SOURCE[0]}")/clear-app-extended-attributes.bash"
fi
}

function install()
Expand Down
2 changes: 0 additions & 2 deletions tools/install-mas-applications.bash
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ function install()
then
header 'UPGRADING STORE APPLICATIONS'
mas upgrade

sudo "$(dirname "${BASH_SOURCE[0]}")/clear-app-extended-attributes.bash"
fi
}

Expand Down

0 comments on commit 80d7bcb

Please sign in to comment.