Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
0e5969b2da552c8b6bfd69f8f35ff44e18af2328
/
.
/
include
/
shell.sh
blob: 6ee0cf6030ac5e0a71d7be1c2438c58ee9724caf [
file
] [
log
] [
blame
]
b.liu
e958203
2025-04-17 19:18:16 +0800
[
diff
] [
blame
]
1
getvar
()
{
2
eval
"echo \"\${$1}\""
3
}
4
5
var2file
()
{
6
local
var
7
eval
"var=\"\${$1}\""
8
if
[
-
n
"$var"
];
then
echo
"$var"
>
"$2"
;
fi
9
}
10
11
isset
()
{
12
local
var
13
eval
"var=\"\${$1}\""
14
[
-
n
"$var"
]
15
}