I'm trying to run a certain application (Salesforce dataloader v61) on MacOS. The entry point is a bash script:
#!/bin/bash
DL_INSTALL_ROOT="$(dirname "$(readlink -f "$0")")"
source ${DL_INSTALL_ROOT}/util/util.sh
runDataLoader $@
When I run it, it fails seemingly trying to source my .zshrc file:
/Users/achere/dataloader/dataloader_v61.0.0/dataloader_console
/Users/achere/.zshrc: eval: line 26: syntax error near unexpected token `)'
/Users/achere/.zshrc: eval: line 26: ` () {'
/Users/achere/.zshrc: line 14: zmodload: command not found
/Users/achere/.zshrc: eval: line 17: unexpected argument `(' to conditional binary operator
/Users/achere/.zshrc: eval: line 17: syntax error near `(['
/Users/achere/.zshrc: eval: line 17: `if [[ $ZSH_VERSION == ([1-4]*) ]]; then'
/Users/achere/.zshrc: line 36: (Ie)__zoxide_hook: syntax error in expression (error token is "__zoxide_hook")
If I comment everything out in my .zshrc it works. How can I run that application without having to do that? I.e., how can I make sure tha a #!/bin/bash script doesn't try to load .zshrc?