fixer upper and remove a user prompt in the middle of setup

This commit is contained in:
2023-11-19 12:00:51 -07:00
parent ad338c15c5
commit c20d85e1d0
6 changed files with 22 additions and 21 deletions

View File

@ -1,17 +1,18 @@
#!/bin/zsh
cd "${0:a:h}"
OVERWRITE_EXISTING=0
while [[ $# -gt 0 ]]
do
case $1 in
--force-root ) FORCE_ROOT=1 ;;
--ci ) export CI=1 ;;
--overwrite ) OVERWRITE_EXISTING=1 ;;
--no-compile-dmenu ) COMPILE_DMENU=0 ;;
--no-compile-vim ) COMPILE_VIM=0 ;;
--min )
MIN=1
COMPILE_VIM=0
COMPILE_DMENU=0
;;
esac
@ -32,4 +33,7 @@ INFO "installation start : $(date)" 2>> "$LOGFILE"
INFO "installation complete: $(date)" 2>> "$LOGFILE"
################################################################################
source "$DOTWRYN_PATH/setup/cleanup.zsh"
yN 'keep logfile?' \
|| { rm "$LOGFILE" || ERROR "unable to remove '$LOGFILE'" }
SUCCESS "\n.wryn setup complete; have a nice day :)\n"