Fix SC2230.

This commit is contained in:
Darko Poljak 2018-10-05 12:27:43 +02:00
parent 8cea8e67aa
commit 9b567ed8f7
1 changed files with 1 additions and 1 deletions

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)