Skip to content

Commit 325a000

Browse files
committed
1.12.10
Signed-off-by: Dan K. Snelson <dan@snelson.us>
1 parent d4541eb commit 325a000

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.12.10
4+
### 15-Sep-2023
5+
- Better WelcomeMessage logic and variable handling ([Pull Request No. 101](https://github.com/dan-snelson/Setup-Your-Mac/pull/101); thanks big bunches, @GadgetGeekNI!)
6+
37
## 1.12.9
48
### 15-Sep-2023
59
- Added `-L` to `curl` command when caching banner images (thanks for the suggestion, @bartreardon!)

Prompt-to-Setup-Your-Mac.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Version 0.0.5, 09-Sep-2023, Dan K. Snelson (@dan-snelson)
3030
# - Updated `dialogURL`
3131
#
32-
# Version 1.12.9, 15-Sep-2023, Dan K. Snelson (@dan-snelson)
32+
# Version 1.12.10, 15-Sep-2023, Dan K. Snelson (@dan-snelson)
3333
# - Reverted `mktemp`-created files to pre-SYM `1.12.1` behaviour
3434
# - Matched SYM version number
3535
#
@@ -68,7 +68,7 @@ fi
6868
# Global variables
6969
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
7070

71-
scriptVersion="1.12.9"
71+
scriptVersion="1.12.10"
7272
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
7373
secondsToWait="${4:-"2700"}" # Parameter 4: "secondsToWait" setting; defaults to "2700"
7474
scriptLog="/var/log/org.churchofjesuschrist.log" # Your organization's default location for client-side logs

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[<img alt="Setup Your Mac (1.12.0)" src="images/SYM_icon.png" width="128" />](https://snelson.us/sym)
2-
# Setup Your Mac (1.12.9) via swiftDialog (2.3.2)
2+
# Setup Your Mac (1.12.10) via swiftDialog (2.3.2)
33

44
![GitHub release (latest by date)](https://img.shields.io/github/v/release/dan-snelson/Setup-Your-Mac?display_name=tag) ![GitHub issues](https://img.shields.io/github/issues-raw/dan-snelson/Setup-Your-Mac) ![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/dan-snelson/Setup-Your-Mac) ![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/dan-snelson/Setup-Your-Mac) ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed-raw/dan-snelson/Setup-Your-Mac)
55

6-
> With more accurate Dynamic Download Estimates, additional user-input fields and multiple speed improvements, Setup Your Mac (1.12.9) helps MacAdmins provide their users a seamless onboarding experience via swiftDialog (2.3.2).
6+
> With more accurate Dynamic Download Estimates, additional user-input fields and multiple speed improvements, Setup Your Mac (1.12.10) helps MacAdmins provide their users a seamless onboarding experience via swiftDialog (2.3.2).
77
88
[<img alt="Setup Your Mac (1.12.0)" src="images/Setup_Your_Mac_1.12.0_estimates.png" />](https://snelson.us/sym)
99

Setup-Your-Mac-via-Dialog.bash

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
# - Hide unused Support variables ([Pull Request No. 99](https://github.com/dan-snelson/Setup-Your-Mac/pull/99); thanks again, @GadgetGeekNI!)
7171
# - 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!)
7272
#
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+
#
7376
####################################################################################################
7477

7578

@@ -84,7 +87,7 @@
8487
# Script Version and Jamf Pro Script Parameters
8588
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
8689

87-
scriptVersion="1.12.9"
90+
scriptVersion="1.12.10"
8891
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
8992
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)
9093
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"
149152
brandingIconDark="https://cdn-icons-png.flaticon.com/512/740/740878.png"
150153

151154
# 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"
153156
supportTeamPhone="+1 (801) 555-1212"
154-
supportTeamEmail="RescueMe@domain.com"
157+
supportTeamEmail="support@domain.com"
155158
supportKB="KB8675309"
156159
supportTeamErrorKB=", and mention [${supportKB}](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=${supportKB}#Failures)"
157160
supportTeamHelpKB="\n- **Knowledge Base Article:** ${supportKB}"
@@ -528,7 +531,7 @@ if [[ -z $supportTeamName ]]; then
528531
fi
529532

530533
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"
532535
exit 1
533536
fi
534537

@@ -602,19 +605,19 @@ if [ -n "$supportTeamName" ]; then
602605
welcomeMessage+="\n\nIf you need assistance, please contact the ${supportTeamName}:"
603606

604607
if [ -n "$supportTeamPhone" ]; then
605-
welcomeMessage+="\n - **Via Phone** : ${supportTeamPhone}"
608+
welcomeMessage+="\n - **Phone**: ${supportTeamPhone}"
606609
fi
607610

608611
if [ -n "$supportTeamEmail" ]; then
609-
welcomeMessage+="\n - **Via Email** : ${supportTeamEmail}"
612+
welcomeMessage+="\n - **Email**: ${supportTeamEmail}"
610613
fi
611614

612615
if [ -n "$supportKB" ]; then
613616
welcomeMessage+=" and mention ${supportKB}"
614617
fi
615618
fi
616619

617-
welcomeMessage+=".\n\n---"
620+
welcomeMessage+="\n\n---"
618621

619622
if { [[ "${promptForConfiguration}" == "true" ]] && [[ "${welcomeDialog}" != "messageOnly" ]]; } then
620623
welcomeMessage+=" \n\n#### Configurations \n- **${configurationOneName}:** ${configurationOneDescription} \n- **${configurationTwoName}:** ${configurationTwoDescription} \n- **${configurationThreeName}:** ${configurationThreeDescription}"

0 commit comments

Comments
 (0)