Remove needless check

Starting `dockerd-rootless.sh` checks that `$HOME` is writeable, but does not
require it to be so.
Make the check more precise, and check that it actually exists and is a
directory.

Signed-off-by: Hugo Osvaldo Barrera <hugo@barrera.io>
This commit is contained in:
Hugo Barrera 2021-04-20 19:28:50 +00:00 committed by Hugo Osvaldo Barrera
parent bcdb3c7368
commit 3980d0462d

View file

@ -28,8 +28,8 @@ if ! [ -w $XDG_RUNTIME_DIR ]; then
echo "XDG_RUNTIME_DIR needs to be set and writable" echo "XDG_RUNTIME_DIR needs to be set and writable"
exit 1 exit 1
fi fi
if ! [ -w $HOME ]; then if ! [ -d $HOME ]; then
echo "HOME needs to be set and writable" echo "HOME needs to be set and exist."
exit 1 exit 1
fi fi