Having issue with postinstall script that I cannot seem to spot. We have done this 100 times, but all of the sudden this package, recreated several times, fails. I have removed and added all spaces and line returns to get rid of anything odd.
The package extracts files to a folder then the postinstall script executes MMC_Install.sh to perform the install. I know MMC_Install.sh is sound as I have tested outside capture. The issue is that postinstall fails to launch the sh command. I found the below in console install.log:
2021-12-22 10:29:04-06 macos-10 package_script_service[533]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.0LaYFY/Scripts/macdocusignedit-2.1.0.0-r1.9PgfhO
2021-12-22 10:29:04-06 macos-10 package_script_service[533]: Set responsibility to pid: 525, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2021-12-22 10:29:05-06 macos-10 package_script_service[533]: ./postinstall: /tmp/PKInstallSandbox.0LaYFY/Scripts/macdocusignedit-2.1.0.0-r1.9PgfhO/postinstall: line 8:
sh: command not found
2021-12-22 10:29:05-06 macos-10 package_script_service[533]: Responsibility set back to self.
Any advice would be welcome.



