system/nvidia-driver: Replaced backtick cmdsub.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-07-15 04:45:31 -04:00 committed by Willy Sudiarto Raharjo
parent 99daa51ee7
commit 88b14fae68
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -72,7 +72,8 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
fi
if [ "${PERSISTENCED:-no}" = "yes" ]; then
if [ "`getent group nvidia > /dev/null`" -o "`getent passwd nvidia > /dev/null`" ]; then
# 20240715 bkw: this test was borked, fixed.
if [ "$( getent group nvidia )" = "" -o "$( getent passwd nvidia )" = "" ]; then
echo "User and/or group nvidia do not exist!"
echo "Please create user and group nvidia and rerun this script."
exit 1