General: Remove eval from info()
This commit is contained in:
parent
4e3325bc8b
commit
ba0404e399
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2355,10 +2355,10 @@ info() {
|
||||||
|
|
||||||
# Call the function and update variable
|
# Call the function and update variable
|
||||||
"get${2:-$1}" 2>/dev/null
|
"get${2:-$1}" 2>/dev/null
|
||||||
eval output="\$${2:-$1}"
|
output="${2:-$1}"
|
||||||
|
|
||||||
# Trim whitespace
|
# Trim whitespace
|
||||||
output="$(trim "$output")"
|
output="$(trim "${!output}")"
|
||||||
|
|
||||||
# If prin was used in the function, stop here.
|
# If prin was used in the function, stop here.
|
||||||
[[ "$prin" ]] && \
|
[[ "$prin" ]] && \
|
||||||
|
|
Loading…
Reference in a new issue