Closed neilmartin83 closed 5 years ago
Suggested changes from me to make the script a bit more idempotent:
Get the logged in username using this method: http://erikberglund.github.io/2018/Get-the-currently-logged-in-user,-in-Bash/ and always use that instead of $USER
Have left the detection of $1 to / so the script will continue to work with Jamf without the --Register parameter present.
This should solve Issue #1
Thanks!
Suggested changes from me to make the script a bit more idempotent:
Get the logged in username using this method: http://erikberglund.github.io/2018/Get-the-currently-logged-in-user,-in-Bash/ and always use that instead of $USER
Have left the detection of $1 to / so the script will continue to work with Jamf without the --Register parameter present.
This should solve Issue #1