-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ai): 修改 checkpermission 函数对于命令执行错误时的判断逻辑 (#1174)
原本对于 ssh 命令执行错误的判断是 判断 stderr 有无输出,但是发现有情况属于 stderr 有输出(warning)但是命令执行成功的情况,所以将此处修改改为判断 code 的值
- Loading branch information
1 parent
b8d7684
commit 01cfdae
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/ai": patch | ||
--- | ||
|
||
修改对于 ssh 命令执行错误的判断 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters