Skip to content

Commit

Permalink
update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Jan 28, 2019
1 parent 764bb48 commit 776ed10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ function openMacApplications()
done
}

function resetMacApplicationPermissions()
function clearAppExtendedAttributes()
{
local -r headerMessage="${1}"
local -r applicationPaths=("${@:2}")
Expand All @@ -832,7 +832,7 @@ function resetMacApplicationPermissions()

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

0 comments on commit 776ed10

Please sign in to comment.