dan-snelson / dialog-scripts

Scripts with leverage Bart Reardon's swiftDialog
MIT License
110 stars 35 forks source link

LoggedInUser variable defined twice #41

Closed BrandonESexton closed 1 year ago

BrandonESexton commented 1 year ago

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

dan-snelson commented 1 year ago

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

dan-snelson commented 1 year ago

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

dan-snelson commented 1 year ago

Addressed in 1.7.2-rc2.

dan-snelson commented 1 year ago

Addressed in 1.7.2.