aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/shell.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/shell.sh b/include/shell.sh
index a1e5cbe66f..634beedcef 100644
--- a/include/shell.sh
+++ b/include/shell.sh
@@ -1,3 +1,7 @@
+getvar() {
+ eval "echo \"\${$1}\""
+}
+
var2file() {
local var
eval "var=\"\${$1}\""