Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
56df7394
Commit
56df7394
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
App install logic
parent
6c143c31
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-utils-selector
+15
-12
15 additions, 12 deletions
src/freedombone-utils-selector
with
15 additions
and
12 deletions
src/freedombone-utils-selector
+
15
−
12
View file @
56df7394
...
...
@@ -283,35 +283,38 @@ function remove_apps {
function
install_apps
{
is_interactive
=
$1
app_index
=
0
for
a
in
"
${
APPS_AVAILABLE
[@]
}
"
do
if
[[
$(
app_is_removed
${
a
}
)
==
"0"
]]
;
then
# interactive install configuration for each app
if
[
${
is_interactive
}
]
;
then
app_index
=
0
for
a
in
"
${
APPS_AVAILABLE
[@]
}
"
do
if
[[
${
APPS_INSTALLED
[
$app_index
]
}
==
"0"
]]
;
then
if
[[
${
APPS_CHOSEN
[
$app_index
]
}
==
"1"
]]
;
then
if
[
${
is_interactive
}
]
;
then
# interactively obtain settings for this app
if
[[
$(
function_exists install_interactive_
${
a
}
)
==
"1"
]]
;
then
install_interactive_
${
a
}
fi
# interactively obtain settings for this app
if
[[
$(
function_exists install_interactive_
${
a
}
)
==
"1"
]]
;
then
install_interactive_
${
a
}
fi
fi
fi
fi
app_index
=
$[
app_index+1]
done
app_index
=
$[
app_index+1]
done
fi
# now install the apps
app_index
=
0
for
a
in
"
${
APPS_AVAILABLE
[@]
}
"
do
if
[[
${
APPS_INSTALLED
[
$app_index
]
}
==
"0"
]]
;
then
if
[[
${
APPS_CHOSEN
[
$app_index
]
}
==
"1"
]]
;
then
if
[
${
is_interactive
}
]
;
then
# clears any removal indicator
reinstall_app
${
a
}
echo
$"Installing application from interactive:
${
a
}
"
install_
${
a
}
echo
$"
${
a
}
was installed from interactive"
else
# check if the app was removed
if
[[
$(
app_is_removed
${
a
}
)
==
"0"
]]
;
then
echo
$"Installing application:
${
a
}
"
install_
${
a
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment