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>
(cherry picked from commit 3980d0462d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Hugo Barrera 2021-04-20 19:28:50 +00:00 committed by Sebastiaan van Stijn
parent 9f5b26fb86
commit 2c6aa5aad9
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 2 deletions

View File

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