Initially select all apps for install in interactive mode
This commit is contained in:
parent
94948257b1
commit
5161fee8f6
|
@ -181,6 +181,10 @@ fi
|
||||||
|
|
||||||
detect_installable_apps
|
detect_installable_apps
|
||||||
|
|
||||||
|
if [[ $1 == "all"* ]]; then
|
||||||
|
choose_all_installable_apps
|
||||||
|
fi
|
||||||
|
|
||||||
# if no applications were found
|
# if no applications were found
|
||||||
if [[ ${#APPS_AVAILABLE[@]} == 0 ]]; then
|
if [[ ${#APPS_AVAILABLE[@]} == 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -316,6 +316,16 @@ function detect_installable_apps {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function choose_all_installable_apps {
|
||||||
|
# selects all of the apps
|
||||||
|
app_index=0
|
||||||
|
for a in "${APPS_AVAILABLE[@]}"
|
||||||
|
do
|
||||||
|
APPS_CHOSEN[$app_index]="1"
|
||||||
|
app_index=$[app_index+1]
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# creates the APPS_AVAILABLE and APPS_CHOSEN arrays based on
|
# creates the APPS_AVAILABLE and APPS_CHOSEN arrays based on
|
||||||
# the given variant name
|
# the given variant name
|
||||||
function choose_apps_for_variant {
|
function choose_apps_for_variant {
|
||||||
|
|
|
@ -535,7 +535,7 @@ function setup_apps {
|
||||||
upgrade_apps
|
upgrade_apps
|
||||||
|
|
||||||
if [[ $is_interactive == "menuconfig"* ]]; then
|
if [[ $is_interactive == "menuconfig"* ]]; then
|
||||||
${PROJECT_NAME}-addremove
|
${PROJECT_NAME}-addremove all
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_interactive == "noninteractive" || $is_interactive == "headless" ]]; then
|
if [[ $is_interactive == "noninteractive" || $is_interactive == "headless" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue