瀏覽代碼

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 年之前
父節點
當前提交
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}\""