mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
list_loaded_launchjob_ids: add sudo prompt
This commit is contained in:
@@ -19,7 +19,7 @@ if [[ "${1}" =~ ^(-h|--help)$ ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
(sudo -- /bin/launchctl list && /bin/launchctl list) | \
|
||||
(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\.' | \
|
||||
|
||||
Reference in New Issue
Block a user