fix: keep installer progress from exiting early
This commit is contained in:
+3
-1
@@ -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"; }
|
||||
|
||||
Reference in New Issue
Block a user