Skip to content

Commit

Permalink
One less Jamf script variable
Browse files Browse the repository at this point in the history
Grabs $macOSname and $title from OS name as specified in $4.
  • Loading branch information
Patrick Gallagher committed Oct 17, 2017
1 parent a5f07a6 commit b9af754
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions macOSUpgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# Written by: Joshua Roskos | Professional Services Engineer | Jamf
#
# Created On: January 5th, 2017
# Updated On: September 16th, 2017
# Updated On: October 17th, 2017
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Expand All @@ -58,9 +58,6 @@
##Enter 0 for Full Screen, 1 for Utility window (screenshots available on GitHub)
userDialog=0

##Heading to be used for userDialog
heading="Please wait as we prepare your computer for $macOSname..."

#Specify path to OS installer. Use Parameter 4 in the JSS, or specify here
#Example: /Applications/Install macOS High Sierra.app
OSInstaller="$4"
Expand All @@ -76,10 +73,13 @@ download_trigger="$6"

#Title of OS
#Example: macOS High Sierra
macOSname="$7"
macOSname=`echo "$OSInstaller" |sed 's/^\/Applications\/Install \(.*\)\.app$/\1/'`

##Title to be used for userDialog (only applies to Utility Window)
title="$7 Upgrade"
title="$macOSname Upgrade"

##Heading to be used for userDialog
heading="Please wait as we prepare your computer for $macOSname..."

##Title to be used for userDialog
description="
Expand Down

0 comments on commit b9af754

Please sign in to comment.