perl-functions.eclass: Replace unnecessary eval with ${!var}
authorMichał Górny <mgorny@gentoo.org>
Thu, 23 Feb 2017 17:01:47 +0000 (18:01 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 8 Mar 2017 07:35:32 +0000 (08:35 +0100)
eclass/perl-functions.eclass

index 8b798d65ac6a590ff3bacec361be2f44332cf392..4f6872500c204530d6ee765d4a2bcc0e2a0c94cf 100644 (file)
@@ -275,7 +275,7 @@ perl_check_env() {
                errored=1
 
                # Read ENV Value
-               eval "value=\$$i";
+               value=${!i};
 
                # Print ENV name/value pair
                if [ -n "${I_KNOW_WHAT_I_AM_DOING}" ]; then