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
db222977
Commit
db222977
authored
Jan 02, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPU Temp: Fix issue with old values
parent
3f7dd84e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
neofetch
neofetch
+10
-3
No files found.
neofetch
View file @
db222977
...
@@ -2825,11 +2825,13 @@ get_user_config() {
...
@@ -2825,11 +2825,13 @@ get_user_config() {
if [[ -f "
$config_file
" ]]; then
if [[ -f "
$config_file
" ]]; then
source "
$config_file
"
source "
$config_file
"
err "
Config: Sourced user config.
(
${
config_file
})
"
err "
Config: Sourced user config.
(
${
config_file
})
"
old_options
return
return
elif
[[
"
$config_file
"
==
"travis"
]]
;
then
elif
[[
"
$config_file
"
==
"travis"
]]
;
then
source
"
$travis_config
"
source
"
$travis_config
"
err
"Config: Sourced user config. (
${
travis_config
}
)"
err
"Config: Sourced user config. (
${
travis_config
}
)"
old_options
return
return
fi
fi
mkdir
-p
"
${
XDG_CONFIG_HOME
}
/neofetch/"
mkdir
-p
"
${
XDG_CONFIG_HOME
}
/neofetch/"
...
@@ -2856,8 +2858,6 @@ get_user_config() {
...
@@ -2856,8 +2858,6 @@ get_user_config() {
source
"
$config_file
"
source
"
$config_file
"
err
"Config: Sourced user config. (
${
config_file
}
)"
err
"Config: Sourced user config. (
${
config_file
}
)"
# Check for deprecated options.
old_options
old_options
}
}
...
@@ -3009,6 +3009,9 @@ old_options() {
...
@@ -3009,6 +3009,9 @@ old_options() {
# $start and $end were replaced with ${block_range[@]} in 2.1.0.
# $start and $end were replaced with ${block_range[@]} in 2.1.0.
[[
"
$start
"
&&
"
$end
"
]]
&&
{
err
"Config:
\$
start and
\$
end are deprecated, use block_range=(0 7) instead."
;
block_range
=(
"
$start
"
"
$end
"
)
;
}
[[
"
$start
"
&&
"
$end
"
]]
&&
{
err
"Config:
\$
start and
\$
end are deprecated, use block_range=(0 7) instead."
;
block_range
=(
"
$start
"
"
$end
"
)
;
}
# Fahrenheit support was added to CPU so the options were changed.
[[
"
$cpu_temp
"
==
"on"
]]
&&
{
err
"Config: cpu_temp='on' is deprecated, use cpu_temp='C' or 'F' instead."
;
cpu_temp
=
"C"
;
}
}
}
cache_uname
()
{
cache_uname
()
{
...
@@ -3336,7 +3339,6 @@ get_args() {
...
@@ -3336,7 +3339,6 @@ get_args() {
"--os_arch"
)
os_arch
=
"
$2
"
;;
"--os_arch"
)
os_arch
=
"
$2
"
;;
"--cpu_cores"
)
cpu_cores
=
"
$2
"
;;
"--cpu_cores"
)
cpu_cores
=
"
$2
"
;;
"--cpu_speed"
)
cpu_speed
=
"
$2
"
;;
"--cpu_speed"
)
cpu_speed
=
"
$2
"
;;
"--cpu_temp"
)
cpu_temp
=
"
$2
"
;;
"--speed_type"
)
speed_type
=
"
$2
"
;;
"--speed_type"
)
speed_type
=
"
$2
"
;;
"--distro_shorthand"
)
distro_shorthand
=
"
$2
"
;;
"--distro_shorthand"
)
distro_shorthand
=
"
$2
"
;;
"--kernel_shorthand"
)
kernel_shorthand
=
"
$2
"
;;
"--kernel_shorthand"
)
kernel_shorthand
=
"
$2
"
;;
...
@@ -3354,6 +3356,11 @@ get_args() {
...
@@ -3354,6 +3356,11 @@ get_args() {
"--song_shorthand"
)
song_shorthand
=
"
$2
"
;;
"--song_shorthand"
)
song_shorthand
=
"
$2
"
;;
"--install_time"
)
install_time
=
"
$2
"
;;
"--install_time"
)
install_time
=
"
$2
"
;;
"--install_time_format"
)
install_time_format
=
"
$2
"
;;
"--install_time_format"
)
install_time_format
=
"
$2
"
;;
"--cpu_temp"
)
cpu_temp
=
"
$2
"
[[
"
$cpu_temp
"
==
"on"
]]
&&
cpu_temp
=
"C"
;;
"--disable"
)
"--disable"
)
for
func
in
"
$@
"
;
do
for
func
in
"
$@
"
;
do
case
"
$func
"
in
case
"
$func
"
in
...
...
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