mirror of
https://github.com/mtan93/dialog-scripts.git
synced 2026-03-08 05:31:54 +00:00
Updated function name for clarity
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user