Skip to content

Commit 263712d

Browse files
Better argument passing to bash.
1 parent 51dd8dd commit 263712d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/run_seclab_agent.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ fi
77

88
mkdir -p logs
99

10+
# Note: this uses the trick described [here](https://unix.stackexchange.com/a/646335)
11+
# to pass extra command line arguments into `bash -c`.
1012
docker run -i \
1113
--mount type=bind,src="$PWD",dst=/app \
1214
--mount type=bind,src="./logs",dst=/root/.local \
1315
-e GH_TOKEN="$GH_TOKEN" -e AI_API_TOKEN="$AI_API_TOKEN" --entrypoint /bin/bash \
1416
"ghcr.io/githubsecuritylab/seclab-taskflow-agent" \
15-
-c "pip install -q -e /app ; $*"
17+
-c 'pip install -q -e /app ; exec "$@"' this-is-bash-dollar-zero "$@"

0 commit comments

Comments
 (0)