changeset 471:9af2e1cd964e

Add test for $HOME writability.
author edogawaconan <me@myconan.net>
date Sun, 14 Jul 2013 02:01:09 +0900
parents f8397bdc0cbc
children 4322b0a8a695
files setup
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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() {