robjschroeder / Elevate

Elevate is a script that can be ran from Jamf Pro to help elevate a standard user to admin for a specific amount of time
35 stars 5 forks source link

Using variable in parameter does not seem to work #2

Closed robjschroeder closed 1 year ago

robjschroeder commented 1 year ago

When using a variable (${plistDomain}) in the parameter, the variable has not yet been declared so cannot be used as a substitute in a parameter string.

Script needs to pass both parameters then combine for the entire scriptLog variable.

https://github.com/robjschroeder/Elevate/blob/b7dc623923822c3a52697542ce3d6722f395b5bf/Elevate.sh#L30