[type/__user] Make shellcheck happy

This commit is contained in:
Dennis Camera 2020-06-30 14:31:11 +02:00
parent 9e33a8f42f
commit 6467ccbdcc
1 changed files with 2 additions and 1 deletions

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