Show dev kernel target only if EXPERT=yes

This commit is contained in:
zador-blood-stained 2017-06-18 17:40:24 +03:00
parent 6d878a9e1d
commit d88ba47532

View File

@ -179,7 +179,7 @@ if [[ -z $BRANCH ]]; then
options=()
[[ $KERNEL_TARGET == *default* ]] && options+=("default" "Vendor provided / legacy (3.4.x - 4.4.x)")
[[ $KERNEL_TARGET == *next* ]] && options+=("next" "Mainline (@kernel.org) (4.x)")
[[ $KERNEL_TARGET == *dev* ]] && options+=("dev" "Development version (4.x)")
[[ $KERNEL_TARGET == *dev* && EXPERT=yes ]] && options+=("dev" "Development version (4.x)")
# do not display selection dialog if only one kernel branch is available
if [[ "${#options[@]}" == 2 ]]; then
BRANCH="${options[0]}"