Fixed a bug in pi version checking.

This commit is contained in:
Storm Dragon 2024-12-13 15:17:24 -05:00
parent 7ac75d8fb2
commit 5b6b3b2dc2

View File

@ -126,7 +126,7 @@ while [[ "$choice" != "Exit" ]]; do
"Enable Bluetooth" "Enable Bluetooth"
) )
raspberryPiVersion=$(cat /sys/firmware/devicetree/base/model | cut -f-3 -d ' ') raspberryPiVersion=$(cat /sys/firmware/devicetree/base/model | cut -f-3 -d ' ')
if [[ "${raspberryPiVersion%0*}" == "Raspberry Pi 5" ]] && [[ "$(pacman -Q linux-rpi-16k &> /dev/null)" -eq 1 ]]; then if [[ "${raspberryPiVersion%%0*}" == "Raspberry Pi 5" ]] && [[ "$(pacman -Q linux-rpi-16k &> /dev/null)" -eq 1 ]]; then
options+=("Install Raspberry Pi 5 kernel") options+=("Install Raspberry Pi 5 kernel")
fi fi
options+=("Install Lxqt Desktop" options+=("Install Lxqt Desktop"