Hi guys,
In my metapackage installer I have a sub-package which has an InstallationCheck script.
A snippet of the script is included below.
When the package is run on it's own, the appropriate error will appear if the necessary files are not found. However when included within a metapackage it does not work - the installer recognises the script is there, produces a dialog prompting user to grant permission for pre-install check, but it does NOT produce an error.
Anyone have any idea what I'm doing wrong?
Regards,
Rodney
--> script snippet #!/bin/bash # echo "InstallationCheck" # Error out if we can find our Database folder pkgPath=$1 pkgParent=${pkgPath%\/*} installationFolder="/Volumes/AVMX714/Databases" if [ ! -d "$installationFolder" ]; then let "retval=((3<<5)|17)" #defined in strings file exit $retval fi <-- snip
-- Rodney Tamblyn OceanBrowser Ltd 44 Melville Street Dunedin, New Zealand Ph +64-3-4778606 extension 1 Technical Support: +64-3-4778606 ext. 5 (Mon-Friday 9-5pm NZ time) iax2:oceanbrowser.dyndns.info/rodney http://www.oceanbrowser.com/
|