mirror of
https://github.com/PurpleComputing/helpful-scripts.git
synced 2026-02-03 13:53:24 +00:00
Update dockutil-labels-user.sh
This commit is contained in:
@@ -6,6 +6,7 @@ uid=$(id -u "$currentUser")
|
||||
runAsUser() {
|
||||
if [ "$currentUser" != "loginwindow" ]; then
|
||||
launchctl asuser "$uid" sudo -u "$currentUser" "$@"
|
||||
echo logged in user is $( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' )
|
||||
else
|
||||
echo "no user logged in"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user