feat(shell-sync): add get_var()

This commit is contained in:
hoelee committed 2026-05-15 12:17:00 +08:00
1 parent 2458ceeab7
commit a57dddbcc0
1 file changed
+5
+5
View File
@@ -31,3 +31,8 @@ log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
}
get_var() {
local varname="$1"
echo "${!varname:-}"
}