> We have developers (including me) and buildfarm machines using M1 Macs ,
> and nobody else is reporting any big problem with them, so I don't believe
> that this is specifically due to that.
Even we don't have any problem when we run commands via terminal. Problem occurs only when we run as a part of script.
We have tried this script in 5 Mac m1 machines and it is the same issue everywhere.
> kill -9 is not something that would happen internally to the install
> process. My guess is that that is interference from some external agent.
> Perhaps you have some resource-consumption-limiting daemon installed on
> that machine, and it's deciding that the command ran too long?
I don't think of any other external agent other than the anti-virus software running at that moment. And I also don't think that it will cause this issue.
If possible, please do try this script(attached as screenshot as well as pastebin link)