I have the following shell script:
sfdx force:org:create -f ./config/project-scratch-def.json -a ScratchOrg
sfdx force:package:install --package 04t0M000001mF9bQAE -u ScratchOrg
sfdx force:package:install --package 04tG0000000LKgXIAW -u ScratchOrg
sfdx force:package:install --package 04t58000000KnAkAAK -u ScratchOrg
sfdx force:package:install --package 04t1Q000000lpP6QAI -u ScratchOrg
sfdx force:source:push -u ScratchOrg
However this fails because the push happens before the 4 packages have finished installing. Is there some way I can make this wait? Or better, include this information in my scratch org configuration?