Skip to content

Commit

Permalink
Tolerate not having a config dir mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
solvaholic committed Mar 22, 2020
1 parent b1fb95b commit b89e659
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ DOIT="${2}"
# Change to config directory, so relative paths will work.
cd "$(dirname "${CONFIG_PATH}")" || echo "INFO: Cannot cd to $(dirname "${CONFIG_PATH}")."

# If $CONFIG_PATH is not in a Git repository, fail.
if ! git rev-parse --show-toplevel >/dev/null 2>&1; then
echo "FAIL: Did not find your config repository."
exit 1
fi

# Get octodns, if it's not already there.
if ! git rev-parse --resolve-git-dir /octodns/.git >/dev/null 2>&1; then
git clone --branch v0.9.9 --depth 1 \
Expand Down

0 comments on commit b89e659

Please sign in to comment.