Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: skip whitespace-only vals in startup script
  • Loading branch information
deansheather committed Mar 6, 2023
commit df7df739c3ed0e496d91c945a7c4bb9c91e054fd
9 changes: 5 additions & 4 deletions dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,17 @@ resource "coder_agent" "dev" {
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &


if [ ! -d ${data.coder_parameter.repo_dir.value} ]; then
mkdir -p ${data.coder_parameter.repo_dir.value}
CODER_REPO_DIR="${data.coder_parameter.repo_dir.value}"
if [ -n "$${CODER_REPO_DIR// }" ] && [ ! -d "$CODER_REPO_DIR" ]; then
mkdir -p "$CODER_REPO_DIR"

git clone https://github.com/coder/coder ${data.coder_parameter.repo_dir.value}
git clone https://github.com/coder/coder "$CODER_REPO_DIR"
fi

sudo service docker start
DOTFILES_URI="${data.coder_parameter.dotfiles_url.value}"
rm -f ~/.personalize.log
if [ -n "$DOTFILES_URI" ]; then
if [ -n "$${DOTFILES_URI// }" ]; then
coder dotfiles "$DOTFILES_URI" -y 2>&1 | tee -a ~/.personalize.log
fi
if [ -x ~/personalize ]; then
Expand Down