Every time I write a Bash script that loops through something, I test printing out the variable and it always splits the spaces across new lines so an app named ‘jHelper GUI 1.0.app’ ends up as: jHelper GUI 1.0.app The thing I keep forgetting to sort this is IFS!
I am slowly building an application in Python to automatically update the patch management of the JSS.
Instead of writing out a large block for an if / elif such as… if [[ $foo == $bar ]]; then echo "yes" else echo "no fi a much shorter version can be used instead: [[ $foo == $bar ]] && echo "yes" || echo "no" A simple [[ condition ]] && positive result || negative result
Requirements:VFUSE: https://github.com/chilcote/vfuse/releasesAutoDMG: https://github.com/MagerValp/AutoDMG/releasesVMWare FusionBootable DMG of macOSSerial number and model identifier of a machine that will DEP Build a bootable DMG using AutoDMGUse the following vfuse commands to create the .vmwarevm sudo /usr/local/vfuse/bin/vfuse -i [path/to/DMG] -n "[name of VM Machine]" -s [DEP Serial] --hw-model [model identifier] sudo /usr/local/vfuse/bin/vfuse -i /Users/monodata/Documents/_IMAGES/10.13/macOS-10.13.6-17G65.apfs.dmg -n "macOS-10.13.6-DEP" -s C0202XHG0D6T --hw-model MacBookPro14,3
Had an issue recently with some users that couldnt unlock their JAMF MDM managed MBP using Touch ID.
Got caught out not checking if a variable had been passed to a script that then used it to delete an .app.
While scripting a configuration manifest for DEPNotify, it would skip to the next policy before the last had completed, and so would skip to the end and close the splash screen before the build was finished.