Merge "adb: fix apex installation." am: f8dc296dfd

Change-Id: I3ce241b4c9c48d20eaa5cb221ff8d04c215ca713
This commit is contained in:
Yurii Zubrytskyi 2020-03-31 17:11:02 +00:00 committed by Automerger Merge Worker
commit 39f4a75392

View file

@ -325,7 +325,12 @@ static int install_app_incremental(int argc, const char** argv, bool wait, bool
}
}
if (first_apk == -1) error_exit("Need at least one APK file on command line");
if (first_apk == -1) {
if (!silent) {
fprintf(stderr, "error: need at least one APK file on command line\n");
}
return -1;
}
auto files = incremental::Files{argv + first_apk, argv + last_apk + 1};
if (silent) {