#!/bin/zsh cd "${0:a:h}" while [[ $# -gt 0 ]] do case $1 in --force-root ) FORCE_ROOT=1 ;; --ci ) export CI=1 ;; --no-compile-dmenu ) COMPILE_DMENU=0 ;; --no-compile-vim ) COMPILE_VIM=0 ;; --min ) MIN=1 COMPILE_VIM=0 COMPILE_DMENU=0 ;; esac shift 1 done source ./requirements.zsh || exit 1 ################################################################################ LOGFILE="$HOME/dotwryn-install.log" INFO "installation start : $(date)" 2>> "$LOGFILE" { SETUP__OS || FAIL 1 'failed to set up os-dependencies (see above)' SETUP__GIT || FAIL 2 'failed to set up git (see above)' SETUP__CONFIG || FAIL 3 'failed to set up program configuration (see above)' } 2>&1 | tee --append "$LOGFILE" INFO "installation complete: $(date)" 2>> "$LOGFILE" ################################################################################ source "$DOTWRYN_PATH/setup/cleanup.zsh"