From 5c7f1aace287ac06c908e26f88028e415bc8b5c8 Mon Sep 17 00:00:00 2001 From: hoelee Date: Mon, 24 Aug 2026 11:55:00 +0800 Subject: [PATCH] feat(shell-sync): get_var --- platform/shell-sync/sync.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/shell-sync/sync.sh b/platform/shell-sync/sync.sh index 51c065cc..cab80dda 100644 --- a/platform/shell-sync/sync.sh +++ b/platform/shell-sync/sync.sh @@ -31,3 +31,8 @@ log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*" } +get_var() { + local varname="$1" + echo "${!varname:-}" +} +