Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pc-setup-scripts
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andri Joos
pc-setup-scripts
Commits
2d92dbeb
Commit
2d92dbeb
authored
3 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
add dark theme warning
parent
2dddb8e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
helper_scripts/command_exists.sh
+10
-0
10 additions, 0 deletions
helper_scripts/command_exists.sh
setup.sh
+5
-0
5 additions, 0 deletions
setup.sh
update.sh
+1
-11
1 addition, 11 deletions
update.sh
with
16 additions
and
11 deletions
helper_scripts/command_exists.sh
0 → 100644
+
10
−
0
View file @
2d92dbeb
command_exists
()
{
cmd
=
$1
if
command
-v
$cmd
&> /dev/null
then
true
else
false
fi
}
This diff is collapsed.
Click to expand it.
setup.sh
+
5
−
0
View file @
2d92dbeb
...
...
@@ -4,6 +4,7 @@ INSTALLER_DIR=$(dirname "${BASH_SOURCE[0]}")
HELPER_SCRIPTS_DIR
=
"
$INSTALLER_DIR
/helper_scripts"
source
"
$HELPER_SCRIPTS_DIR
/packages.sh"
source
"
$HELPER_SCRIPTS_DIR
/command_exists.sh"
NONE_IDENTIFIER
=
"none"
NONE_TEXT
=
"None"
...
...
@@ -65,6 +66,10 @@ main() {
--extra-vars
"dconf_config_path='
$dconf_config_path
' vscode_config_path='
$vscode_config_path
' vscode_extensions_path='
$vscode_extensions_path
' swap_sizes='
$swap_sizes
' git_config_path='
$git_config_path
'"
\
--inventory
"
${
INSTALLER_DIR
}
/ansible_inventory.ini"
\
$(
IFS
=
' '
echo
"
${
additional_ansible_args
[*]
}
"
)
if
command_exists flatpak
;
then
echo
"If you have set your system theme to dark, you may need to update your Flatpak packages. You can use update.sh to do so."
fi
}
main
This diff is collapsed.
Click to expand it.
update.sh
+
1
−
11
View file @
2d92dbeb
...
...
@@ -4,6 +4,7 @@ INSTALLER_DIR=$(dirname "${BASH_SOURCE[0]}")
HELPER_SCRIPTS_DIR
=
"
$INSTALLER_DIR
/helper_scripts"
source
"
$HELPER_SCRIPTS_DIR
/package_manager_identifiers.sh"
source
"
$HELPER_SCRIPTS_DIR
/command_exists.sh"
declare
-A
PACKAGE_MANAGERS
PACKAGE_MANAGERS
=(
...
...
@@ -24,17 +25,6 @@ ORDERED_PACKAGE_MANAGERS=(
"
$MAINLINE_KERNEL_IDENTIFIER
"
)
command_exists
()
{
cmd
=
$1
if
command
-v
$cmd
&> /dev/null
then
true
else
false
fi
}
main
()
{
possible_package_managers
=(
"
${
DEFAULT_PACKAGE_MANAGERS
[@]
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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