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
b7de2bac
Commit
b7de2bac
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Mark initial removed apps
parent
d067de37
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-addremove
+23
-0
23 additions, 0 deletions
src/freedombone-addremove
with
23 additions
and
0 deletions
src/freedombone-addremove
+
23
−
0
View file @
b7de2bac
...
...
@@ -55,6 +55,28 @@ do
source
$f
done
function
mark_unselected_apps_as_removed
{
# Initially mark the apps not selected on first install as being removed
# otherwise they may be automatically installed on the next update
select_all_apps
=
$1
if
[[
"
$select_all_apps
"
!=
"add-all"
]]
;
then
return
fi
if
[
-f
$REMOVED_APPS_FILE
]
;
then
rm
$REMOVED_APPS_FILE
fi
app_index
=
0
for
app_name
in
"
${
APPS_AVAILABLE
[@]
}
"
do
if
[[
${
APPS_INSTALLED
[
$app_index
]
}
==
"0"
]]
;
then
echo
"_
${
app_name
}
_"
>>
$REMOVED_APPS_FILE
fi
app_index
=
$[
app_index+1]
done
}
function
show_apps
{
select_all_apps
=
$1
applist
=
""
...
...
@@ -199,6 +221,7 @@ if [[ ${#APPS_AVAILABLE[@]} == 0 ]]; then
fi
show_apps
$1
mark_unselected_apps_as_removed
$1
clear
...
...
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