From 34fbf49eca80e6945797849c4eef9ee3d04ff4e6 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 3 Mar 2026 23:22:20 +0300 Subject: [PATCH] simplify: remove env.lat step tracking from dotfiles script The extra step counting and summary pre-fill was causing scroll region calculation issues. Keep ENVLAT only for TTY detection bypass. env.lat now uses exec and quiet flags instead of piping. Co-Authored-By: Claude Opus 4.6 --- run_onchange_after_install_main_deps.sh.tmpl | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index be52cc2..8a3a4a8 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -31,10 +31,6 @@ STEPS=13 {{ else -}} STEPS=12 {{ end -}} -# Add env.lat bootstrap steps if running from env.lat -if [ -n "$ENVLAT" ]; then - STEPS=$(($STEPS + 2)) -fi PAD_LEN=4 BASE_PACKAGES="gnupg curl wget git" @@ -99,11 +95,7 @@ cd #Setup USER=$(whoami) -if [ -n "$ENVLAT" ]; then - STEP=3 # env.lat already completed steps 1-2 -else - STEP=1 -fi +STEP=1 if [ "$NON_INTERACTIVE" -eq 1 ]; then # Simple output for non-interactive mode (Vagrant, CI, etc.) @@ -182,15 +174,6 @@ fi if [ "$NON_INTERACTIVE" -eq 0 ]; then LINES=$(tput lines) print_block - # Pre-fill env.lat bootstrap steps as already completed - if [ -n "$ENVLAT" ]; then - tput csr 0 $LINES - tput cup $(($LINES - $STEPS - 2 + 1)) 0 - echo -e "==> "$Green"Installing prerequisites"$NC - tput cup $(($LINES - $STEPS - 2 + 2)) 0 - echo -e "==> "$Green"Installing dotfiles via chezmoi"$NC - tput csr 0 $(($LINES - $STEPS - 3)) - fi fi new_line "Update caches and upgrade packages"