Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
4d363414
Commit
4d363414
authored
Dec 08, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Travis: Point shellcheck to config files
parent
bb2b7ab5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
.travis.yml
.travis.yml
+1
-0
neofetch
neofetch
+6
-1
No files found.
.travis.yml
View file @
4d363414
...
...
@@ -19,3 +19,4 @@ before_install:
script
:
-
time ./neofetch --ascii --config travis --ascii_distro travis -v
-
bash -c 'shellcheck neofetch'
neofetch
View file @
4d363414
...
...
@@ -88,6 +88,7 @@ get_distro() {
else
# Source the os-release file
for
file
in
/etc/os-release /usr/lib/os-release /etc/
*
release /usr/lib/
*
release
;
do
# shellcheck source=/etc/os-release
source
"
$file
"
&&
break
done
...
...
@@ -2414,6 +2415,7 @@ info() {
# Use cache if it exists
if [[ -f "
${
cache_dir
}
/neofetch/
${
2
}
" ]]; then
# shellcheck source=/dev/null
source "
${
cache_dir
}
/neofetch/
${
2
}
"
else
# Call the function.
...
...
@@ -2817,6 +2819,7 @@ get_default_config() {
travis_config=
"
${
script_dir
}
/config/travis"
fi
# shellcheck source=config/config
if source
"
$default_config
"
; then
err
"Config: Sourced default config. (
$default_config
)"
else
...
...
@@ -2827,11 +2830,13 @@ get_default_config() {
get_user_config() {
# Check
$config_file
if [[ -f "
$config_file
" ]]; then
# shellcheck source=config/config
source "
$config_file
"
err "
Config: Sourced user config.
(
$config_file
)
"
return
elif
[[
"
$config_file
"
==
"travis"
]]
;
then
# shellcheck source=config/travis
source
"
$travis_config
"
err
"Config: Sourced user config. (
$travis_config
)"
return
...
...
@@ -2857,7 +2862,7 @@ get_user_config() {
cp
"
$script_dir
/config/config"
"
$XDG_CONFIG_HOME
/neofetch"
config_file
=
"
$XDG_CONFIG_HOME
/neofetch/config"
fi
# shellcheck source=config/config
source
"
$config_file
"
err
"Config: Sourced user config. (
$config_file
)"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment