diff options
| author | Seth Troisi <[email protected]> | 2025-04-24 01:03:11 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-04-23 18:07:29 -0700 |
| commit | 105c20146c1dca470de56142061aabdee8c101aa (patch) | |
| tree | 28751cb3fb004786553c4eb9808fffba49d86312 /scripts/start_sandbox.sh | |
| parent | 09fabe3021fdfecf821e85e2a09cc29f0aced69a (diff) | |
Add generic container run command for npm start
Diffstat (limited to 'scripts/start_sandbox.sh')
| -rwxr-xr-x | scripts/start_sandbox.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/start_sandbox.sh b/scripts/start_sandbox.sh index 9be2e47f..81651a0d 100755 --- a/scripts/start_sandbox.sh +++ b/scripts/start_sandbox.sh @@ -57,5 +57,9 @@ fi node_args+=("$CLI_PATH" "$@") # run gemini-code in sandbox container -# use empty --authfile to skip unnecessary auth refresh overhead -$CMD run "${run_args[@]}" --init --authfile <(echo '{}') --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}" +if [[ "$CMD" == "podman" ]]; then + # use empty --authfile to skip unnecessary auth refresh overhead + $CMD run "${run_args[@]}" --init --authfile <(echo '{}') --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}" +else + $CMD run "${run_args[@]}" --init --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}" +fi |
