haskell-platform icon indicating copy to clipboard operation
haskell-platform copied to clipboard

activate-hs does not handle all errors

Open brson opened this issue 9 years ago • 1 comments

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.

brson avatar Jun 02 '15 18:06 brson

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 avatar Jun 03 '15 02:06 mzero