The installation script needs to set up a few persistent environment variables:
ABCE_DIR, the absolute path to the top-level ABCE directory
ABCE_ENV, the location of the Julia environment files and the environment creation scripts; and
- an update to
$PATH, adding Julia 1.8.* to the front
Export statements for these environment variables are added to the bottom of the .bashrc in the user's $HOME folder.
However, if the script is unable to write to .bashrc, the script does not seem to generate a fatal error, and does not alert the user (aside from a possible error message in the midst of many screens' worth of output). This means that the environment variables will not be set and ABCE will not run, even though install.sh will appear to have finished successfully.
If install.sh cannot write to .bashrc, the issue should be logged and the user should be notified at the end of the script's output. This notice can include a suggestion for the exact lines the user can manually add to .bashrc as a workaround.
The installation script needs to set up a few persistent environment variables:
ABCE_DIR, the absolute path to the top-level ABCE directoryABCE_ENV, the location of the Julia environment files and the environment creation scripts; and$PATH, adding Julia 1.8.* to the frontExport statements for these environment variables are added to the bottom of the
.bashrcin the user's$HOMEfolder.However, if the script is unable to write to
.bashrc, the script does not seem to generate a fatal error, and does not alert the user (aside from a possible error message in the midst of many screens' worth of output). This means that the environment variables will not be set and ABCE will not run, even thoughinstall.shwill appear to have finished successfully.If
install.shcannot write to.bashrc, the issue should be logged and the user should be notified at the end of the script's output. This notice can include a suggestion for the exact lines the user can manually add to.bashrcas a workaround.