AFP548

PKG scripts – postflight, preflight, etc.

For such scripts to work properly within the InstaDMG framework, one has to include the $3 argument when referring to the target installation volume, correct? Thus far I've written all postflight/preflight scripts in /bin/sh. A number of these preflight scripts do file removal for software updates. File removal for paths with tons of spaces in the full path. Anyone got a best practice technique for prepending a $3 argument to a path with spaces in it? $3"/path/to/filename with spaces in it" I've been playing around with it but can't seem to find a consistent solution.
Exit mobile version