Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

activate-hs does not handle all errors #178

Open
brson opened this issue Jun 2, 2015 · 1 comment
Open

activate-hs does not handle all errors #178

brson opened this issue Jun 2, 2015 · 1 comment
Labels

Comments

@brson
Copy link

brson commented Jun 2, 2015

Several file-system modifying commands in this script are not checked for errors. See for example the symlink functions. It looks to me like, if these fail, the script will simply continue (possibly with the failing command itself printing an error message to stderr).

This may be an intentional 'best-effort' strategy, but I would expect the script to detect and report the errors, or possibly be run with set -e to automatically abort, or even better, have some recovery strategy to not leave the install in a broken state.

mzero added a commit that referenced this issue Jun 3, 2015
@mzero
Copy link
Member

mzero commented Jun 3, 2015

I've added the set -e to the script, and pushed to pre-release branch.
If your bash scripting skills are better than mine (not hard!) then I'd be happy for a patch that did more!
If not, would prefer we just resolve this or put it on the back burner?

@mzero mzero added the Linux label Jun 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants