Author: nbd
Date: 2014-10-26 17:18:24 +0100 (Sun, 26 Oct 2014)
New Revision: 43068

Modified:
   trunk/include/shell.sh
Log:
Revert "include/shell.sh: remove getvar()"

It is more widely used than I thought.

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/include/shell.sh
===================================================================
--- trunk/include/shell.sh      2014-10-26 13:27:27 UTC (rev 43067)
+++ trunk/include/shell.sh      2014-10-26 16:18:24 UTC (rev 43068)
@@ -1,3 +1,7 @@
+getvar() {
+       eval "echo \"\${$1}\""
+}
+
 var2file() {
        local var
        eval "var=\"\${$1}\""
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to