feat(shell-sync): add get_var()
This commit is contained in:
1 parent
2458ceeab7
commit
a57dddbcc0
1 file changed
+5
@@ -31,3 +31,8 @@ log() {
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
|
||||
}
|
||||
|
||||
get_var() {
|
||||
local varname="$1"
|
||||
echo "${!varname:-}"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user