Skip to content

install.sh fails semi-silently if it can't write to the .bashrc file #84

@biegelk

Description

@biegelk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions