mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 13:18:01 +08:00
Fix: Different return of command not found (#2088)
This commit is contained in:
@@ -313,10 +313,14 @@ class Connection(ConnectionAttr):
|
|||||||
# About 3ms
|
# About 3ms
|
||||||
result = self.adb_shell(command)
|
result = self.adb_shell(command)
|
||||||
# Result should be command help if success
|
# Result should be command help if success
|
||||||
# `/system/bin/sh: nc: not found` if failed
|
# `/system/bin/sh: nc: not found`
|
||||||
if ': not found' not in result:
|
if 'not found' in result:
|
||||||
logger.attr('nc command', command)
|
continue
|
||||||
return command
|
# `/system/bin/sh: busybox: inaccessible or not found\n`
|
||||||
|
if 'inaccessible' in result:
|
||||||
|
continue
|
||||||
|
logger.attr('nc command', command)
|
||||||
|
return command
|
||||||
|
|
||||||
logger.error('No `netcat` command available, please use screenshot methods without `_nc` suffix')
|
logger.error('No `netcat` command available, please use screenshot methods without `_nc` suffix')
|
||||||
raise RequestHumanTakeover
|
raise RequestHumanTakeover
|
||||||
|
|||||||
Reference in New Issue
Block a user