Skip to content

Commit 3fbe100

Browse files
committed
refactor: use dotfiles if dotfiles var exists
This ensures the `coder dotfiles` command only runs if the dotfiles var in the template is not empty.
1 parent a8af6e0 commit 3fbe100

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dogfood/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ resource "coder_agent" "dev" {
4545
code-server --auth none --port 13337 &
4646
sudo service docker start
4747
coder dotfiles -y 2>&1 | tee ~/.personalize.log
48+
"if [ -n ${var.dotfiles_uri} ]; then coder dotfiles var.dotfiles_uri -y 2>&1 | tee ~/.personalize.log; fi"
4849
EOF
4950
}
5051

0 commit comments

Comments
 (0)