fix: keep installer progress from exiting early

This commit is contained in:
2026-08-30 13:20:32 +00:00
parent 06c28677e2
commit 646a518e57
+3 -1
View File
@@ -22,7 +22,9 @@ die() { printf '\n\033[31mxymediavault installer: %s\033[0m\n' "$*" >&2; [[ -n $
progress() {
STEP=$((STEP + 1))
printf '\033[2K\r[%d/%d] %s\n' "$STEP" "$TOTAL_STEPS" "$1"
[[ -n $INSTALL_LOG ]] && printf '[%d/%d] %s\n' "$STEP" "$TOTAL_STEPS" "$1" >>"$INSTALL_LOG"
if [[ -n $INSTALL_LOG ]]; then
printf '[%d/%d] %s\n' "$STEP" "$TOTAL_STEPS" "$1" >>"$INSTALL_LOG"
fi
}
run_logged() { "$@" >>"$INSTALL_LOG" 2>&1; }
usage() { sed -n '1,20p' "$0"; }