Updated function name for clarity

This commit is contained in:
Adam Codega
2022-03-01 11:54:32 -05:00
committed by GitHub
parent 3f602fc6e1
commit 0d2fef6a42

View File

@@ -1,6 +1,6 @@
# this function is Bash compatible, insert the function in your script and then place displayAppleScript where you want it to be executed # this function is Bash compatible, insert the function in your script and then place dialogAppleScript where you want it to be executed
displayAppleScript(){ dialogAppleScript(){
message="A problem was encountered setting up this Mac. Please contact IT." message="A problem was encountered setting up this Mac. Please contact IT."
currentUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ { print $3 }') currentUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ { print $3 }')
if [[ "$currentUser" != "" ]]; then if [[ "$currentUser" != "" ]]; then