|
70 | 70 | # - Hide unused Support variables ([Pull Request No. 99](https://github.com/dan-snelson/Setup-Your-Mac/pull/99); thanks again, @GadgetGeekNI!) |
71 | 71 | # - Added Pre-flight Check: Validate `supportTeam` variables are populated ([Pull Request No. 100](https://github.com/dan-snelson/Setup-Your-Mac/pull/100); thanks for another one, @GadgetGeekNI!) |
72 | 72 | # |
| 73 | +# Version 1.12.10, 15-Sep-2023, Dan K. Snelson (@dan-snelson) |
| 74 | +# - Better WelcomeMessage logic and variable handling ([Pull Request No. 101](https://github.com/dan-snelson/Setup-Your-Mac/pull/101); thanks big bunches, @GadgetGeekNI!) |
| 75 | +# |
73 | 76 | #################################################################################################### |
74 | 77 |
|
75 | 78 |
|
|
84 | 87 | # Script Version and Jamf Pro Script Parameters |
85 | 88 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
86 | 89 |
|
87 | | -scriptVersion="1.12.9" |
| 90 | +scriptVersion="1.12.10" |
88 | 91 | export PATH=/usr/bin:/bin:/usr/sbin:/sbin |
89 | 92 | scriptLog="${4:-"/var/log/org.churchofjesuschrist.log"}" # Parameter 4: Script Log Location [ /var/log/org.churchofjesuschrist.log ] (i.e., Your organization's default location for client-side logs) |
90 | 93 | debugMode="${5:-"verbose"}" # Parameter 5: Debug Mode [ verbose (default) | true | false ] |
@@ -149,9 +152,9 @@ brandingIconLight="https://cdn-icons-png.flaticon.com/512/979/979585.png" |
149 | 152 | brandingIconDark="https://cdn-icons-png.flaticon.com/512/740/740878.png" |
150 | 153 |
|
151 | 154 | # IT Support Variables - Use these if the default text is fine but you want your org's info inserted instead |
152 | | -supportTeamName="Help Desk" |
| 155 | +supportTeamName="Support Team Name" |
153 | 156 | supportTeamPhone="+1 (801) 555-1212" |
154 | | -supportTeamEmail="RescueMe@domain.com" |
| 157 | +supportTeamEmail="support@domain.com" |
155 | 158 | supportKB="KB8675309" |
156 | 159 | supportTeamErrorKB=", and mention [${supportKB}](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=${supportKB}#Failures)" |
157 | 160 | supportTeamHelpKB="\n- **Knowledge Base Article:** ${supportKB}" |
@@ -528,7 +531,7 @@ if [[ -z $supportTeamName ]]; then |
528 | 531 | fi |
529 | 532 |
|
530 | 533 | if [[ -z $supportTeamPhone && -z $supportTeamEmail && -z $supportKB ]]; then |
531 | | - updateScriptLog "PRE-FLIGHT CHECK: At least **one** 'supportTeam' variable must be populated to proceed; exiting" |
| 534 | + updateScriptLog "PRE-FLIGHT CHECK: At least ONE 'supportTeam' variable must be populated to proceed; exiting" |
532 | 535 | exit 1 |
533 | 536 | fi |
534 | 537 |
|
@@ -602,19 +605,19 @@ if [ -n "$supportTeamName" ]; then |
602 | 605 | welcomeMessage+="\n\nIf you need assistance, please contact the ${supportTeamName}:" |
603 | 606 |
|
604 | 607 | if [ -n "$supportTeamPhone" ]; then |
605 | | - welcomeMessage+="\n - **Via Phone** : ${supportTeamPhone}" |
| 608 | + welcomeMessage+="\n - **Phone**: ${supportTeamPhone}" |
606 | 609 | fi |
607 | 610 |
|
608 | 611 | if [ -n "$supportTeamEmail" ]; then |
609 | | - welcomeMessage+="\n - **Via Email** : ${supportTeamEmail}" |
| 612 | + welcomeMessage+="\n - **Email**: ${supportTeamEmail}" |
610 | 613 | fi |
611 | 614 |
|
612 | 615 | if [ -n "$supportKB" ]; then |
613 | 616 | welcomeMessage+=" and mention ${supportKB}" |
614 | 617 | fi |
615 | 618 | fi |
616 | 619 |
|
617 | | -welcomeMessage+=".\n\n---" |
| 620 | +welcomeMessage+="\n\n---" |
618 | 621 |
|
619 | 622 | if { [[ "${promptForConfiguration}" == "true" ]] && [[ "${welcomeDialog}" != "messageOnly" ]]; } then |
620 | 623 | welcomeMessage+=" \n\n#### Configurations \n- **${configurationOneName}:** ${configurationOneDescription} \n- **${configurationTwoName}:** ${configurationTwoDescription} \n- **${configurationThreeName}:** ${configurationThreeDescription}" |
|
0 commit comments