Skip to content

Commit 0bc6a41

Browse files
committed
fix: _write_conda_env 引号注入 + .superpowers 移入 local exclude
- _write_conda_env 改用 sys.argv[1] 传参,避免用户输入含引号时的注入风险 - .superpowers/ 从 .gitignore 移至 .git/info/exclude(本地工具状态不应进仓库级忽略)
1 parent 7d16924 commit 0bc6a41

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ __pycache__/
1414
# Editor / local tooling
1515
.vscode/
1616
.claude/
17-
.superpowers/
1817
CLAUDE.md
1918

2019
# GUI 本地配置

QuantClass Sync.command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ except Exception:
2727
_write_conda_env() {
2828
python3 -c "
2929
import json, sys
30-
env = '$1'
30+
env = sys.argv[1]
3131
try:
3232
data = json.load(open('$CONFIG_FILE'))
3333
except Exception:
@@ -36,7 +36,7 @@ data['conda_env'] = env
3636
with open('$CONFIG_FILE', 'w') as f:
3737
json.dump(data, f, ensure_ascii=False, indent=2)
3838
f.write('\n')
39-
" 2>/dev/null
39+
" "$1" 2>/dev/null
4040
}
4141

4242
# 统一暂停并退出,避免各分支散落重复交互代码。

0 commit comments

Comments
 (0)