comparison 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
comparison
equal deleted inserted replaced
470:f8397bdc0cbc 471:9af2e1cd964e
22 # dotfiles 22 # dotfiles
23 rcdir="${basedir}/rc" 23 rcdir="${basedir}/rc"
24 # misc scripts 24 # misc scripts
25 bindir="${basedir}/bin" 25 bindir="${basedir}/bin"
26 26
27 # Make sure $HOME points somewhere. 27 # Make sure $HOME points somewhere and writable.
28 # FIXME: ensure it is writable (or maybe not).
29 test -n "${HOME}" || exit 1 28 test -n "${HOME}" || exit 1
29 test -w "${HOME}" || exit 1
30 30
31 # A safe echo. 31 # A safe echo.
32 _echo() { 32 _echo() {
33 _echon "${*}"; printf "\n" 33 _echon "${*}"; printf "\n"
34 } 34 }