mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Use consistent conditional
This commit is contained in:
@ -9,7 +9,7 @@ yay -S --noconfirm --needed \
|
|||||||
chromium
|
chromium
|
||||||
|
|
||||||
# Add screen recorder based on GPU
|
# 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
|
yay -S --noconfirm --needed wf-recorder
|
||||||
else
|
else
|
||||||
yay -S --noconfirm --needed wl-screenrec
|
yay -S --noconfirm --needed wl-screenrec
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
echo "Install wf-recorder for screen recording for nvidia"
|
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
|
if ! command -v wf-recorder &>/dev/null; then
|
||||||
yay -S --noconfirm --needed wf-recorder
|
yay -S --noconfirm --needed wf-recorder
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user