mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-04 05:44:52 +08:00
Fix: Different return of command not found (#2088)
This commit is contained in:
@@ -313,8 +313,12 @@ 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:
|
||||||
|
continue
|
||||||
|
# `/system/bin/sh: busybox: inaccessible or not found\n`
|
||||||
|
if 'inaccessible' in result:
|
||||||
|
continue
|
||||||
logger.attr('nc command', command)
|
logger.attr('nc command', command)
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user