arc-functions: fix syntax

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-04 11:42:08 +02:00
parent e14850f5c0
commit 84ab5bf0b1

View File

@ -49,7 +49,7 @@ function addonSelection() {
while read -r ADDON DESC; do
arrayExistItem "${ADDON}" "${!ADDONS[@]}" && ACT="on" || ACT="off"
if [ "${ADDON}" = "cpufreqscaling" ]; then
[ -d "/sys/devices/system/cpu/cpu0/cpufreq" ] && continue
[ ! -d "/sys/devices/system/cpu/cpu0/cpufreq" ] && continue
fi
echo -e "${ADDON} \"${DESC}\" ${ACT}" >>"${TMP_PATH}/opts"
done <<<$(availableAddons "${PLATFORM}")