Error running script: return code was 2. while running script for ventura update

bravichandran
New Contributor II

Hi,

Please check and suggest. 

getting the below error while running script for mac os ventura update

Error running script: return code was 2.

Install finished successfully Scanning for 13.0.1 installer Install finished successfully /Library/Application Support/JAMF/tmp/MacOSUpgrade.sh test 2: line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory /Library/Application Support/JAMF/tmp/MacOSUpgrade.sh test 2: line 7: syntax error near unexpected token `|' /Library/Application Support/JAMF/tmp/MacOSUpgrade.sh test 2: line 7: `echo <password> |'/Applications/Install macOS Ventura Beta.app/Contents/Resources/startosinstall' --agreetolicense --nointeraction --forcequitapps --user <admin> --stdinpass'

1 ACCEPTED SOLUTION

mickgrant
Contributor II

line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory

 you probably have an issue here as well 

View solution in original post

3 REPLIES 3

karthikeyan_mac
Contributor III

echo <password> |<space>'/Applications/Install macOS Ventura Beta.app/Contents/Resources/startosinstall'- try giving space after | in line 7.

Thanks.

Thanks, will try

mickgrant
Contributor II

line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory

 you probably have an issue here as well