2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
d4754e1eb5
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  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}\""