-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·34 lines (26 loc) · 964 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·34 lines (26 loc) · 964 Bytes
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
#!/usr/bin/env bash
set -e
CONFIG="install.conf.yaml"
DOCKER_CONFIG="install.docker.conf.yaml"
DOTBOT_DIR="dotbot"
# The SDKZ image bakes SDKZ_IMAGE_VERSION into its environment, so its presence
# means this is running inside that container rather than on a host. There the
# full config makes no sense - no GUI, no rust toolchain, no host-level installs -
# so use the pared-down one. Set SDKZ_IMAGE_VERSION= to force the full config.
if [ -n "${SDKZ_IMAGE_VERSION:-}" ]; then
CONFIG="${DOCKER_CONFIG}"
fi
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# plugins directory
SUDOPLUGIN="${BASEDIR}/dotbot-sudo/sudo.py"
OMNIPKGPLUGIN="${BASEDIR}/dotbot-omnipkg/omnipkg.py"
cd "${BASEDIR}"
git submodule update --quiet --init --recursive
echo "Installing with ${CONFIG}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
-d "${BASEDIR}" \
-c "${CONFIG}" \
-p "${SUDOPLUGIN}" \
-p "${OMNIPKGPLUGIN}" \
"${@}"