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 <noreply@anthropic.com>
This commit is contained in:
parent
411bb8604b
commit
34fbf49eca
@ -31,10 +31,6 @@ STEPS=13
|
|||||||
{{ else -}}
|
{{ else -}}
|
||||||
STEPS=12
|
STEPS=12
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
# Add env.lat bootstrap steps if running from env.lat
|
|
||||||
if [ -n "$ENVLAT" ]; then
|
|
||||||
STEPS=$(($STEPS + 2))
|
|
||||||
fi
|
|
||||||
PAD_LEN=4
|
PAD_LEN=4
|
||||||
|
|
||||||
BASE_PACKAGES="gnupg curl wget git"
|
BASE_PACKAGES="gnupg curl wget git"
|
||||||
@ -99,11 +95,7 @@ cd
|
|||||||
|
|
||||||
#Setup
|
#Setup
|
||||||
USER=$(whoami)
|
USER=$(whoami)
|
||||||
if [ -n "$ENVLAT" ]; then
|
STEP=1
|
||||||
STEP=3 # env.lat already completed steps 1-2
|
|
||||||
else
|
|
||||||
STEP=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$NON_INTERACTIVE" -eq 1 ]; then
|
if [ "$NON_INTERACTIVE" -eq 1 ]; then
|
||||||
# Simple output for non-interactive mode (Vagrant, CI, etc.)
|
# Simple output for non-interactive mode (Vagrant, CI, etc.)
|
||||||
@ -182,15 +174,6 @@ fi
|
|||||||
if [ "$NON_INTERACTIVE" -eq 0 ]; then
|
if [ "$NON_INTERACTIVE" -eq 0 ]; then
|
||||||
LINES=$(tput lines)
|
LINES=$(tput lines)
|
||||||
print_block
|
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
|
fi
|
||||||
|
|
||||||
new_line "Update caches and upgrade packages"
|
new_line "Update caches and upgrade packages"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user