Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check shell profile is writeable before modifying #544

Closed
wants to merge 1 commit into from
Closed

Check shell profile is writeable before modifying #544

wants to merge 1 commit into from

Conversation

atcruice
Copy link
Contributor

The set -e at the top of the script causes the installation to fail to complete if the shell profile is not writeable. Checking file existence only is not enough.

I use a shell configuration tool, fresh, to build my setup. The .bash_profile present in my home directory is actually a symlink to a composed file managed by fresh. It's not writeable by the user running the nix install script and this was causing the install to fail abruptly when attempting to modify it. The installer assumed that testing file existence was enough to ensure writing to it was possible.

The `set -e` at the top of the script causes the installation to fail to
complete if the shell profile is not writeable. Checking file existence
only is not enough.
@atcruice atcruice closed this Feb 10, 2016
@atcruice atcruice deleted the install-script-shell-profile-modification branch February 10, 2016 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant