Skip to content

Commit e748312

Browse files
authored
fix(dogfood): fix startup script looping (#11972)
Seems to be on account of the quotes interpreting a ~ literally. We do replace it with /home/coder but only if it matches ~/, not ~ alone.
1 parent 3ace798 commit e748312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dogfood/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ locals {
3131
"sa-saopaulo" = "tcp://oberstein-sao-cdr-dev.tailscale.svc.cluster.local:2375"
3232
}
3333

34-
repo_base_dir = replace(data.coder_parameter.repo_base_dir.value, "/^~\\//", "/home/coder/")
34+
repo_base_dir = data.coder_parameter.repo_base_dir.value == "~" ? "/home/coder" : replace(data.coder_parameter.repo_base_dir.value, "/^~\\//", "/home/coder/")
3535
repo_dir = module.git-clone.repo_dir
3636
container_name = "coder-${data.coder_workspace.me.owner}-${lower(data.coder_workspace.me.name)}"
3737
jfrog_host = replace(var.jfrog_url, "https://", "")

0 commit comments

Comments
 (0)