Commit ba0404e3 authored by Dylan Araps's avatar Dylan Araps

General: Remove eval from info()

parent 4e3325bc
...@@ -2355,10 +2355,10 @@ info() { ...@@ -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" ]] && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment