Error in thisroot.sh

Have been attempting to get ROOT set up, and am stuck on the step involving using a shell script to set environment variables. On my machine, a Macbook pro running macos 10.13 beta, at first thisroot.sh wouldn’t execute at first, until I edited the permissions, and now, when I run
$ sudo ./thisroot.sh
I get the following error:
$ ./thisroot.sh: line 33: ${(%):-%N}: bad substitution
I don’t understand how to move forward.

$ source ./thisroot.sh

Thank you for your tip, just to clarify, should I include that in my .bash_profile instead of what’s given in the readme?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.