Fix SC2230.

This commit is contained in:
Darko Poljak 2018-10-05 12:27:43 +02:00
parent 8cea8e67aa
commit 9b567ed8f7

View file

@ -19,7 +19,7 @@ set -eu
user="$(cat "${__object}/parameter/user")"
if which getent >/dev/null 2>&1; then
if command -v getent >/dev/null 2>&1; then
line=$(getent passwd "${user}")
else
line=$(grep "^${user}:" /etc/passwd)