Skip to content

Commit 83e1e38

Browse files
committed
vm/adb: pass device|console info to script
1 parent d029859 commit 83e1e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/adb/adb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ func (inst *instance) repair() error {
424424

425425
func (inst *instance) runScript(script string) error {
426426
log.Logf(2, "adb: executing %s", script)
427-
output, err := osutil.RunCmd(5*time.Minute, "", "sh", script)
427+
output, err := osutil.RunCmd(5*time.Minute, "", "sh", script, inst.device, inst.console)
428428
if err != nil {
429429
return fmt.Errorf("failed to execute %s: %w", script, err)
430430
}

0 commit comments

Comments
 (0)