fix: make installer and uninstaller completion reliable
TallyNote release / linux-x64 (push) Successful in 6m23s

This commit is contained in:
Qiufeng
2026-09-02 07:59:41 +08:00
parent 26fbec49ad
commit 5dcf9d0f61
7 changed files with 41 additions and 21 deletions
+1 -1
View File
@@ -1302,7 +1302,7 @@ main() {
fi
}
set_env_key() {
local key=$1 value=$2 escaped tmp
local key=$1 value=$2 escaped
[[ "$key" =~ ^[A-Z0-9_]+$ ]] || die '环境变量名无效'
validate_env_value "$value" "$key"
escaped=${value//\\/\\\\}