mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-01 21:30:21 +00:00
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:
parent
a6231c5b68
commit
8aeef42471
8 changed files with 20 additions and 13 deletions
|
|
@ -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}'"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue