Ver código fonte

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

It is more widely used than I thought.

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

SVN-Revision: 43068
Felix Fietkau 11 anos atrás
pai
commit
d4754e1eb5
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      include/shell.sh

+ 4 - 0
include/shell.sh

@@ -1,3 +1,7 @@
+getvar() {
+	eval "echo \"\${$1}\""
+}
+
 var2file() {
 	local var
 	eval "var=\"\${$1}\""