list_loaded_launchjob_ids: use full sudo path

This commit is contained in:
Vítor Galvão 2019-12-25 13:05:48 +00:00 committed by GitHub
parent e4062093ab
commit 4043710942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if [[ "${1}" =~ ^(-h|--help)$ ]]; then
exit 0
fi
(sudo -p 'The system password is required to see all launchd jobs: ' -- /bin/launchctl list && /bin/launchctl list) | \
(/usr/bin/sudo -p 'The system password is required to see all launchd jobs: ' -- /bin/launchctl list && /bin/launchctl list) | \
/usr/bin/cut -f3 | \
/usr/bin/grep --invert-match '^Label$' | \
/usr/bin/grep --invert-match '^com\.apple\.' | \