diff --git a/tools/install-tv.sh b/tools/install-tv.sh index 6f5592a6..fd9736e8 100755 --- a/tools/install-tv.sh +++ b/tools/install-tv.sh @@ -38,6 +38,6 @@ COPIES=$($A -s $D shell "dumpsys activity activities | grep -c 'Hist.*tv.orbit.c echo "now $NOW, copies of Orbit running: $COPIES" snap after python3 "$TOOLS/compare_snapshots.py" "$B/before" "$B/after"; RESULT=$? -ls -d "$OT/backups/${PFX}install-"* 2>/dev/null | sort | head -n -3 | xargs -r rm -rf +ls -dt "$OT/backups/${PFX}install-"* 2>/dev/null | tail -n +4 | xargs -r rm -rf [ "$NOW" = "$NEW" ] && { [ "$COPIES" = "1" ] || [ "${NO_LAUNCH:-0}" = "1" ]; } && [ $RESULT -eq 0 ] && { echo "Install checked out."; exit 0; } echo "Install needs a look (version $NOW, copies $COPIES, comparison exit $RESULT)."; exit 3