adb_shell icon indicating copy to clipboard operation
adb_shell copied to clipboard

get return code of shell command

Open le91688 opened this issue 1 year ago • 4 comments

Currently, adb.shell("my command) returns the result string.

getting the command return code can be achieved by doing something like

adb.shell(my_command; echo exit_code: $?) and parsing the return code out, but would be preferable to have a better mechanism for getting the return code ... possibly like

adb.shell(my_command, ret) where ret is assigned the return code

le91688 avatar May 18 '23 15:05 le91688