1
0
Fork 0

Add new configs based on type of install

This commit is contained in:
Jeremy Kaplan 2016-06-11 21:14:51 -04:00
commit 059176fb04
7 changed files with 73 additions and 2 deletions

View file

@ -1 +0,0 @@
dotbot/tools/git-submodule/install

18
install Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
DEFAULT_CONFIG_PREFIX="default"
CONFIG_SUFFIX=".conf.yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"
for conf in ${DEFAULT_CONFIG_PREFIX} ${@}; do
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${conf}${CONFIG_SUFFIX}"
done