fix: incorrect tuned-ppd config existence check in bazzite-hardware-setup (#1948)

This commit is contained in:
Adam Fidel 2024-12-04 19:35:40 -06:00 committed by GitHub
parent ef30327899
commit 722c65876c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,7 +265,7 @@ fi
# PPD FIX
# Correct broken config files on some systems
if -f "/etc/tuned/ppd.conf" && ! grep "\[battery\]" "/etc/tuned/ppd.conf"; then
if [[ -f "/etc/tuned/ppd.conf" ]] && ! grep "\[battery\]" "/etc/tuned/ppd.conf"; then
cp -f "/usr/etc/tuned/ppd.conf" "/etc/tuned/ppd.conf"
fi