From 8071642b667950d2fe04f6c1b382cf078c7a9c80 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 22 Jul 2025 12:37:57 -0400 Subject: [PATCH] Use consistent conditional --- install/desktop.sh | 2 +- migrations/1753176520.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/desktop.sh b/install/desktop.sh index 0cc6377..0b2b320 100644 --- a/install/desktop.sh +++ b/install/desktop.sh @@ -9,7 +9,7 @@ yay -S --noconfirm --needed \ chromium # Add screen recorder based on GPU -if [ -n "$(lspci | grep -i 'nvidia')" ]; then +if lspci | grep -qi 'nvidia'; then yay -S --noconfirm --needed wf-recorder else yay -S --noconfirm --needed wl-screenrec diff --git a/migrations/1753176520.sh b/migrations/1753176520.sh index 46fc2da..8b21187 100644 --- a/migrations/1753176520.sh +++ b/migrations/1753176520.sh @@ -1,6 +1,6 @@ echo "Install wf-recorder for screen recording for nvidia" -if [ -n "$(lspci | grep -i 'nvidia')" ]; then +if lspci | grep -qi 'nvidia'; then if ! command -v wf-recorder &>/dev/null; then yay -S --noconfirm --needed wf-recorder fi