feat(shell-sync): get_var
This commit is contained in:
1 parent
6441336574
commit
76795a937c
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