Add new configs based on type of install
This commit is contained in:
parent
bb91845ba6
commit
059176fb04
7 changed files with 73 additions and 2 deletions
1
install
1
install
|
|
@ -1 +0,0 @@
|
|||
dotbot/tools/git-submodule/install
|
||||
18
install
Executable file
18
install
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue