Can't seem to run CLI install script on M1 Mac using zsh

Any ideas why zsh doesn’t like the install script

./install-mac.sh: line 7: syntax error near unexpected token `)'
./install-mac.sh: line 7: `		-u|--update-all) UPDATE="true"'

@derrallg I guess the parameter parsing is bash specific (although the script should run through bash anyway) (@jenny).

Can you just run:

/bin/bash ./install-mac.sh  

?

It still gave the same error.

My understanding was that since the script had #!/usr/bin/env bash at the beginning it should still work with zsh.

Thanks Jan for the suggestion. I think I’m going to keep working from my Mac Mini Intel machine which I’ve been doing the tutorials on without a problem and shelve the ARM machine for now. I’ve not had a smooth transition so far.

1 Like