projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a21532
)
Revert "include/shell.sh: remove getvar()"
author
nbd
<nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 26 Oct 2014 16:18:24 +0000
(16:18 +0000)
committer
nbd
<nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 26 Oct 2014 16:18:24 +0000
(16:18 +0000)
It is more widely used than I thought.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43068
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
include/shell.sh
patch
|
blob
|
history
diff --git
a/include/shell.sh
b/include/shell.sh
index
a1e5cbe
..
634beed
100644
(file)
--- a/
include/shell.sh
+++ b/
include/shell.sh
@@
-1,3
+1,7
@@
+getvar() {
+ eval "echo \"\${$1}\""
+}
+
var2file() {
local var
eval "var=\"\${$1}\""