General: Remove eval from info()

This commit is contained in:
Dylan Araps 2016-11-07 17:01:10 +11:00
parent 4e3325bc8b
commit ba0404e399
1 changed files with 2 additions and 2 deletions

View File

@ -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" ]] && \