[type/__user] Make shellcheck happy

This commit is contained in:
Dennis Camera 2020-06-30 14:31:11 +02:00
parent 9e33a8f42f
commit 6467ccbdcc

View file

@ -38,9 +38,10 @@ esac
if command -v getent >/dev/null 2>&1
then
# shellcheck disable=SC2015
getent "${database}" "${name}" 2>/dev/null && exit || true # fallback to file
fi
if test -n "${database}" -a -f "/etc/${database}"
then
grep -e "^${name}:" "/etc/${database}" && exit || true # ignore failure
grep -e "^${name}:" "/etc/${database}" || true # ignore failure
fi