dotwryn/setup/run

30 lines
828 B
Plaintext
Raw Normal View History

#!/bin/zsh
2022-08-19 02:21:32 +00:00
cd "${0:a:h}"
2022-08-19 01:55:18 +00:00
while [[ $# -gt 0 ]]
do
case $1 in
--no-compile-vim ) NO_COMPILE_VIM=1 ;;
--ci ) export CI=1 ;;
--force-root ) FORCE_ROOT=1 ;;
--no-fluff )
NO_COMPILE_VIM=1
;;
esac
shift 1
done
source ${0:a:h}/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__CONFIG || __FAIL 2 '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"