Improve sanity check

This commit is contained in:
Reinhard Pointner 2016-03-05 21:06:23 +00:00
parent b452414614
commit 76f275ebae
1 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
#!/bin/sh
# sanity checks
if [ -z "$HOME" ]; then
echo "The environment variable 'HOME' must be set"
if [ ! -w "$HOME" ]; then
echo '$HOME must be set and writable'
exit 1
fi