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
ddb9b7a3
Commit
ddb9b7a3
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Remove redundant function
parent
992bde2f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-addremove
+0
-14
0 additions, 14 deletions
src/freedombone-addremove
src/freedombone-utils-selector
+14
-14
14 additions, 14 deletions
src/freedombone-utils-selector
with
14 additions
and
28 deletions
src/freedombone-addremove
+
0
−
14
View file @
ddb9b7a3
...
...
@@ -80,20 +80,6 @@ function mark_unselected_apps_as_removed {
done
}
function
app_not_on_onion_only
{
app_name
=
"
$1
"
read_config_param ONION_ONLY
if
[[
"
$ONION_ONLY
"
!=
'no'
]]
;
then
if
grep
-q
"NOT_ON_ONION=1"
"/usr/share/
${
PROJECT_NAME
}
/apps/
${
PROJECT_NAME
}
-app-
${
app_name
}
"
;
then
echo
"0"
return
fi
fi
echo
"1"
}
function
app_expected_to_be_installed
{
# is the given application expected to be installed by default?
select_all_apps
=
"
$1
"
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-selector
+
14
−
14
View file @
ddb9b7a3
...
...
@@ -272,6 +272,20 @@ function get_apps_installed_names {
done
}
function
app_not_on_onion_only
{
app_name
=
"
$1
"
read_config_param ONION_ONLY
if
[[
"
$ONION_ONLY
"
!=
'no'
]]
;
then
if
grep
-q
"NOT_ON_ONION=1"
"/usr/share/
${
PROJECT_NAME
}
/apps/
${
PROJECT_NAME
}
-app-
${
app_name
}
"
;
then
echo
"0"
return
fi
fi
echo
"1"
}
# detects what apps are available
function
detect_apps
{
FILES
=
"/usr/share/
${
PROJECT_NAME
}
/apps/
${
PROJECT_NAME
}
-app-*"
...
...
@@ -299,20 +313,6 @@ function detect_apps {
get_apps_installed_names
}
function
app_not_on_onion_only
{
app_name
=
"
$1
"
read_config_param ONION_ONLY
if
[[
"
$ONION_ONLY
"
!=
'no'
]]
;
then
if
grep
-q
"NOT_ON_ONION=1"
"/usr/share/
${
PROJECT_NAME
}
/apps/
${
PROJECT_NAME
}
-app-
${
app_name
}
"
;
then
echo
"0"
return
fi
fi
echo
"1"
}
# detects what apps are available and can be installed
# If the variants list within an app script is an empty string then
# it is considered to be too experimental to be installable
...
...
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