CS telling me my function is invalid when executing my dotfiles install.sh: “Syntax error: “(” unexpected”.
I have a valid bash function defined but I think the issue is the script is not being run in bash. I added a shebang to install.sh but it still resulted in the error.
I changed the function to a shell compliant function (i.e. removed the word function) and now it runs successfully.
Not sure if this is expected so thought I would post to share my findings.