Updater: push-update: unroot on exit if zip exists

Change-Id: I10ccb345d02830337bc8aefa4f3d41e80e42d064
This commit is contained in:
Timi
2024-12-12 22:42:28 +02:00
committed by Łukasz Patron
parent ed36157049
commit 1d33cc3135

View File

@@ -24,6 +24,7 @@ fi
zip_path_device=$updates_dir/`basename "$zip_path"` zip_path_device=$updates_dir/`basename "$zip_path"`
if adb shell test -f "$zip_path_device"; then if adb shell test -f "$zip_path_device"; then
echo "$zip_path_device exists already" echo "$zip_path_device exists already"
adb unroot
exit 1 exit 1
fi fi