#justalpinethings
This commit is contained in:
parent
99049325d3
commit
6389d36192
@ -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' \
|
||||||
|
@ -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)
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
|
12
setup/run
12
setup/run
@ -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
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user