From 4043710942f35bb8eb2f5a62ccc5184dad46eeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Galv=C3=A3o?= Date: Wed, 25 Dec 2019 13:05:48 +0000 Subject: [PATCH] list_loaded_launchjob_ids: use full sudo path --- developer/bin/list_loaded_launchjob_ids | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer/bin/list_loaded_launchjob_ids b/developer/bin/list_loaded_launchjob_ids index df3d85bb6d..cc65b5dd29 100755 --- a/developer/bin/list_loaded_launchjob_ids +++ b/developer/bin/list_loaded_launchjob_ids @@ -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\.' | \