Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoggedInUser variable defined twice #41

Closed
BrandonESexton opened this issue Feb 24, 2023 · 4 comments
Closed

LoggedInUser variable defined twice #41

BrandonESexton opened this issue Feb 24, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@BrandonESexton
Copy link

  • Script version 1.7.1

Lines 56 and 164 are duplicates which probably would throw anyone else off but I have a special workflow for our IT Ops team who are pre-provisioning computers for the end user. This workflow hinges on If/Then statements based on the $loggedInUser value.

loggedInUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' )

Thank you for an amazing tool!
Brandon Sexton

@BrandonESexton BrandonESexton added the bug Something isn't working label Feb 24, 2023
@dan-snelson
Copy link
Owner

The recent addition of Line 107 is reliant on Line 56, which, when called, exits at Line 108.

@dan-snelson dan-snelson closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2023
@dan-snelson
Copy link
Owner

On second thought, @sudoMyName, you make an excellent point.

@dan-snelson dan-snelson reopened this Feb 27, 2023
@dan-snelson
Copy link
Owner

Addressed in 1.7.2-rc2.

@dan-snelson
Copy link
Owner

Addressed in 1.7.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants