Fix SC2230.
This commit is contained in:
parent
8cea8e67aa
commit
9b567ed8f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue