refactor: fix SC2088 tilde expansion in GCP scripts

- Replace "~/" with "$HOME/" for proper expansion
- Fix 4 SC2088 warnings in nanoclaw.sh, claude.sh, openclaw.sh
- Ensures paths resolve correctly in upload_file calls

Score: 15 (Impact: 5, Confidence: 9, Risk: 3)
This commit is contained in:
Sprite 2026-02-08 02:09:45 +00:00
parent a6231c5b68
commit 8aeef42471
8 changed files with 20 additions and 13 deletions

View file

@ -101,7 +101,8 @@ p.wait()
upload_file() {
local local_path="${1}"
local remote_path="${2}"
local content=$(base64 -w0 "${local_path}" 2>/dev/null || base64 "${local_path}")
local content
content=$(base64 -w0 "${local_path}" 2>/dev/null || base64 "${local_path}")
run_server "echo '${content}' | base64 -d > '${remote_path}'"
}