Skip to content
Snippets Groups Projects
Commit 5161fee8 authored by Bob Mottram's avatar Bob Mottram
Browse files

Initially select all apps for install in interactive mode

parent 94948257
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,10 @@ fi
detect_installable_apps
if [[ $1 == "all"* ]]; then
choose_all_installable_apps
fi
# if no applications were found
if [[ ${#APPS_AVAILABLE[@]} == 0 ]]; then
exit 1
......
......@@ -316,6 +316,16 @@ function detect_installable_apps {
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
# the given variant name
function choose_apps_for_variant {
......
......@@ -535,7 +535,7 @@ function setup_apps {
upgrade_apps
if [[ $is_interactive == "menuconfig"* ]]; then
${PROJECT_NAME}-addremove
${PROJECT_NAME}-addremove all
fi
if [[ $is_interactive == "noninteractive" || $is_interactive == "headless" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment