On macos with default bash:
$ /bin/bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
Copyright (C) 2007 Free Software Foundation, Inc.
$ ./git-identity
./git-identity: line 394: unexpected EOF while looking for matching `"'
./git-identity: line 396: syntax error: unexpected end of file
It works with bash from brew:
$ /opt/homebrew/bin/bash --version
GNU bash, version 5.3.9(1)-release (aarch64-apple-darwin25.1.0)
So for me better shebang is:
then works.
On macos with default bash:
It works with bash from brew:
So for me better shebang is:
then works.