-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·40 lines (33 loc) · 1.17 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env zsh
set -e
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source helpers.zsh
# ######## ####### ######## ######## ####### ########
# ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ######## ## ## ##
# ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ##
# ######## ####### ## ######## ####### ##
CONFIG=".install.conf.yaml"
DOTBOT_DIR="git-submodules/dotbot"
DOTBOT_BIN="bin/dotbot"
info "Update Dotbot git submodule dependencies"
info "cd ${BASEDIR}"
cd "${BASEDIR}"
info "git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive 2>&1"
if git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive 2>&1
then
success "Submodule sync successfull"
else
fail "Error while: Submodule sync"
fi
if git submodule update --init --recursive "${DOTBOT_DIR}" 2>&1
then
success "Submodule update successfull"
else
fail "Error while: Submodule update"
fi
info "Start Dotbot"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" | info_stream
success "Dotbot finished"