#justalpinethings

This commit is contained in:
Wryn (yage) Wagner 2022-08-18 19:55:18 -06:00
parent 99049325d3
commit 6389d36192
4 changed files with 17 additions and 1 deletions

View File

@ -34,6 +34,8 @@ CONFIG__VIM() {
CONFIG__ENV vim || return 1 CONFIG__ENV vim || return 1
CONFIG__RC vim || return 2 CONFIG__RC vim || return 2
[ $NO_COMPILE_VIM ] && return 0
__STATUS 'starting vim setup' __STATUS 'starting vim setup'
"$DOTWRYN_PATH/vim/update" \ "$DOTWRYN_PATH/vim/update" \
&& __SUCCESS 'completed vim setup' \ && __SUCCESS 'completed vim setup' \

View File

@ -1,6 +1,7 @@
##################################################################### #####################################################################
SETUP__OS() { SETUP__OS() {
[ $CI ] && { __STATUS 'detected CI; skipping os setup'; return 0; }
__GETSUDO __GETSUDO
local OS_NAME=$(OS__GET_OS) local OS_NAME=$(OS__GET_OS)

View File

@ -1,4 +1,5 @@
[[ $EUID -eq 0 ]] && { echo 'ERROR::Setup cannot be run as root'; exit 1; } [[ $EUID -eq 0 ]] && [ ! $FORCE_ROOT ] \
&& { echo 'ERROR::Setup cannot be run as root'; exit 1; }
##################################################################### #####################################################################

View File

@ -1,4 +1,16 @@
#!/bin/zsh #!/bin/zsh
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 source ${0:a:h}/requirements.zsh || exit 1
################################################################################ ################################################################################