mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
shell bones (#160)
* shell bones * Merge remote-tracking branch 'origin/main' into shell_bones * add line break * another line break * drop the log to avoid breaking terminals * rename tool to be consistent with terminal * fix build
This commit is contained in:
@@ -53,10 +53,13 @@ while [ "$current_dir" != "/" ]; do
|
||||
current_dir=$(dirname "$current_dir")
|
||||
done
|
||||
|
||||
# if GEMINI_API_KEY is set, copy into container
|
||||
# copy GEMINI_API_KEY
|
||||
if [ -n "${GEMINI_API_KEY:-}" ]; then run_args+=(--env GEMINI_API_KEY="$GEMINI_API_KEY"); fi
|
||||
|
||||
# pass TERM and COLORTERM to container to maintain terminal colors
|
||||
# copy SHELL_TOOL to optionally enable shell tool
|
||||
if [ -n "${SHELL_TOOL:-}" ]; then run_args+=(--env SHELL_TOOL="$SHELL_TOOL"); fi
|
||||
|
||||
# copy TERM and COLORTERM to try to maintain terminal setup
|
||||
if [ -n "${TERM:-}" ]; then run_args+=(--env TERM="$TERM"); fi
|
||||
if [ -n "${COLORTERM:-}" ]; then run_args+=(--env COLORTERM="$COLORTERM"); fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user