From 92784bb3d3ef3dad8520d1b476fa5ccc7193cfd7 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Mon, 23 Nov 2026 09:12:36 +0000 Subject: [PATCH] Install backups are pruned oldest first by time, not by name Co-Authored-By: Claude Opus 5.5 --- tools/install-tv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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