Mercurial > ec-dotfiles
diff setup @ 471:9af2e1cd964e
Add test for $HOME writability.
author | edogawaconan <me@myconan.net> |
---|---|
date | Sun, 14 Jul 2013 02:01:09 +0900 |
parents | 8ef5ddb9b54b |
children | 1ed4d4c449a6 |
line wrap: on
line diff
--- a/setup Wed Jun 26 01:09:35 2013 +0900 +++ b/setup Sun Jul 14 02:01:09 2013 +0900 @@ -24,9 +24,9 @@ # misc scripts bindir="${basedir}/bin" -# Make sure $HOME points somewhere. -# FIXME: ensure it is writable (or maybe not). +# Make sure $HOME points somewhere and writable. test -n "${HOME}" || exit 1 +test -w "${HOME}" || exit 1 # A safe echo. _echo() {