From ba0404e399d2b4d30bfe9e907a7a97fad2d57e05 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 7 Nov 2016 17:01:10 +1100 Subject: [PATCH] General: Remove eval from info() --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 7c4e5696..5c4022a2 100755 --- a/neofetch +++ b/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" ]] && \