Update command as dotbot dir has moved

This commit is contained in:
Jeff Lance 2020-08-09 17:28:11 +02:00
parent 5ac46c3641
commit f724b91d6d
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ META_DIR="meta"
CONFIG_DIR="configs" CONFIG_DIR="configs"
PROFILES_DIR="profiles" PROFILES_DIR="profiles"
DOTBOT_DIR="github/dotbot" DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot" DOTBOT_BIN="bin/dotbot"
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@ -26,10 +26,10 @@ done < "${META_DIR}/${PROFILES_DIR}/$1"
shift shift
"${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}" "${BASE_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}"
for config in ${CONFIGS} ${@}; do for config in ${CONFIGS} ${@}; do
echo -e "\nConfigure $config" echo -e "\nConfigure $config"
configContent="$(<"${BASE_DIR}/${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}")\n$(<"${BASE_DIR}/${META_DIR}/${CONFIG_DIR}/${config}${CONFIG_SUFFIX}")" configContent="$(<"${BASE_DIR}/${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}")\n$(<"${BASE_DIR}/${META_DIR}/${CONFIG_DIR}/${config}${CONFIG_SUFFIX}")"
"${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c <(echo -e "$configContent") "${BASE_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c <(echo -e "$configContent")
done done

View File

@ -9,7 +9,7 @@ META_DIR="meta"
CONFIG_DIR="configs" CONFIG_DIR="configs"
PROFILES_DIR="profiles" PROFILES_DIR="profiles"
DOTBOT_DIR="github/dotbot" DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot" DOTBOT_BIN="bin/dotbot"
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"