Skip to content

Commit

Permalink
Prep 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brhahlen committed Sep 4, 2023
1 parent 38287b5 commit d7a568a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -m

# VERSION
export DC_VERSION=v3.1.0-dev
export DC_VERSION=v3.1.0

###### VARIABLES
if [[ -z "${DC_DIR}" ]]; then
Expand Down
6 changes: 3 additions & 3 deletions dc-completion
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ _dc_completions()
ENV="${DC_DIR}/.env"
DC_CMD_INIT="${DC_CMD} --env-file ${ENV}"
DC_COMMAND="${DC_CMD_INIT} --env-file ${STACK}/${STACK_NAME}.env"
echo "${DC_COMMAND}"
# echo "${DC_COMMAND}"
TMP_DIR="/tmp/dc_stack_services"
if [ ! -d "${TMP_DIR}" ]; then
# echo "${TMP_DIR} not found. Creating..."
Expand All @@ -52,14 +52,14 @@ _dc_completions()
if [ "$(find ${TMP_DIR}/"${STACK_NAME}" -mmin +30)" ]; then
# echo "File is too old, refreshing"
cd "${STACK}" || { echo "cd failed"; exit 1; }
echo "${DC_COMMAND}"
# echo "${DC_COMMAND}"
${DC_COMMAND} config --services > ${TMP_DIR}/"${STACK_NAME}"
cd - > /dev/null || { echo "cd failed"; exit 1; }
fi
else
# echo "File does not exist, creating"
cd "${STACK}" || { echo "cd failed"; exit 1; }
echo "${DC_COMMAND}"
# echo "${DC_COMMAND}"
${DC_COMMAND} config --services > ${TMP_DIR}/"${STACK_NAME}"
cd - > /dev/null || { echo "cd failed"; exit 1; }
fi
Expand Down

0 comments on commit d7a568a

Please sign in to comment.