rclcheckneedretry: avoid useless error messages when there is no $HOME

This commit is contained in:
Jean-Francois Dockes 2022-06-13 13:00:12 +02:00
parent 4e8cc666f0
commit e6596cb26d

View File

@ -17,9 +17,15 @@
# with retry set).
#
# If $HOME does not exist, there is nothing we can do (happens, for example when run as upmpdcli)
if test ! -d "$HOME" ; then
exit 0
fi
# Bin dirs to be tested:
bindirs="/usr/bin /usr/local/bin $HOME/bin /opt/*/bin"
rfiledir=$HOME/.config/Recoll.org
rfile=$rfiledir/needidxretrydate
nrfile=$rfiledir/tneedidxretrydate