refactor: combine environment for `run-groovy` and `run-jshell`
Created by: c-dilks
Most of the environment setup (viz. class path) in run-groovy
and run-jshell
is identical. This PR moves this environment setup to bin/env.sh
, and the extra variables ($JYPATH
) is only set when an argument (groovy
or jshell
) is supplied to the source bin/env.sh
command.