diff --git a/install/hardware/fix-tuxedo-backlight.sh b/install/hardware/fix-tuxedo-backlight.sh index caf9803b..9644d310 100644 --- a/install/hardware/fix-tuxedo-backlight.sh +++ b/install/hardware/fix-tuxedo-backlight.sh @@ -11,6 +11,8 @@ if cat /sys/class/dmi/id/sys_vendor 2>/dev/null | grep -qi "TUXEDO\|Slimbook"; t # Remove any orphaned clevo_xsm_wmi module files not managed by a package for f in /lib/modules/*/extra/clevo-xsm-wmi.ko; do - [ -f "$f" ] && rm "$f" + if [[ -f $f ]]; then + rm "$f" + fi done fi