Improve sanity check
This commit is contained in:
parent
b452414614
commit
76f275ebae
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue