mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
General: Remove eval from info()
This commit is contained in:
4
neofetch
4
neofetch
@@ -2355,10 +2355,10 @@ info() {
|
||||
|
||||
# Call the function and update variable
|
||||
"get${2:-$1}" 2>/dev/null
|
||||
eval output="\$${2:-$1}"
|
||||
output="${2:-$1}"
|
||||
|
||||
# Trim whitespace
|
||||
output="$(trim "$output")"
|
||||
output="$(trim "${!output}")"
|
||||
|
||||
# If prin was used in the function, stop here.
|
||||
[[ "$prin" ]] && \
|
||||
|
||||
Reference in New Issue
Block a user