mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 15:40:47 +00:00
- Replace `echo -e` with `printf` in cli/install.sh for macOS bash 3.x compat
- Remove `-u` (nounset) from test/run.sh — use `${VAR:-}` pattern instead
- Replace `source <(curl ...)` with `eval "$(curl ...)"` in test/run.sh for curl|bash compat
- Add .gitignore patterns for sensitive files (.env, *.pem, *.key, credentials)
Refs #753
Agent: security-auditor
Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4bd5f2205f
commit
4e33cc39cd
3 changed files with 17 additions and 5 deletions
|
|
@ -15,7 +15,7 @@
|
|||
# bash test/run.sh claude # test one script
|
||||
# bash test/run.sh --remote # test remote source (from GitHub)
|
||||
|
||||
set -uo pipefail
|
||||
set -eo pipefail
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
TEST_DIR=$(mktemp -d)
|
||||
|
|
@ -310,7 +310,7 @@ _test_sprite_remote_source() {
|
|||
fi
|
||||
local remote_fns
|
||||
remote_fns=$(bash -c '
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/sprite/lib/common.sh)
|
||||
eval "$(curl -fsSL https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/sprite/lib/common.sh)"
|
||||
type log_info &>/dev/null && echo "OK" || echo "FAIL"
|
||||
' 2>/dev/null)
|
||||
assert_equals "${remote_fns}" "OK" "Remote source from GitHub works"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue