[type/__user] Make shellcheck happy
This commit is contained in:
parent
9e33a8f42f
commit
6467ccbdcc
1 changed files with 2 additions and 1 deletions
|
@ -38,9 +38,10 @@ esac
|
||||||
|
|
||||||
if command -v getent >/dev/null 2>&1
|
if command -v getent >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
|
# shellcheck disable=SC2015
|
||||||
getent "${database}" "${name}" 2>/dev/null && exit || true # fallback to file
|
getent "${database}" "${name}" 2>/dev/null && exit || true # fallback to file
|
||||||
fi
|
fi
|
||||||
if test -n "${database}" -a -f "/etc/${database}"
|
if test -n "${database}" -a -f "/etc/${database}"
|
||||||
then
|
then
|
||||||
grep -e "^${name}:" "/etc/${database}" && exit || true # ignore failure
|
grep -e "^${name}:" "/etc/${database}" || true # ignore failure
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue