Update sap_privileges_change_permissions.zsh to support Privileges 2#203
Merged
jordywitteman merged 1 commit intoroot3nl:masterfrom Dec 16, 2024
mbulmer-addepar:patch-1
Merged
Update sap_privileges_change_permissions.zsh to support Privileges 2#203jordywitteman merged 1 commit intoroot3nl:masterfrom mbulmer-addepar:patch-1
jordywitteman merged 1 commit intoroot3nl:masterfrom
mbulmer-addepar:patch-1
Conversation
Updated helper script to support changes introduced in Privileges 2: - Update path for `sap_privileges_cli` to new location for `PrivilegesCLI` - Added variable for the current user's `uid` - Update change permissions command to utilize `launchctl asuser "$uid"` Note: This *will* break compatibility with the OG Privileges app.
Contributor
|
Awesome thanks @mbulmer-addepar! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated helper script to support changes introduced in Privileges 2:
sap_privileges_clito new location forPrivilegesCLIuidlaunchctl asuser "$uid"Note: This will break compatibility with Privileges 1.x due to the change in the path to the
PrivilegesCLItool.Some extra logic could be added to first check for the version of Privileges that is installed and set the path to
sap_privileges_cliaccordingly, but it's easy enough to change the path back and the script will still function as expected.