Skip to content

Commit 1f8bc6a

Browse files
committed
fixy
1 parent b3ba464 commit 1f8bc6a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

registry/coder/modules/archive/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ locals {
7878

7979
# Ensure ~ is expanded because it cannot be expanded inside quotes in a
8080
# templated shell script.
81-
paths = [for v in var.paths : replace(v, "/^~/", "$HOME")]
82-
exclude_patterns = var.exclude_patterns == null ? [] : [for v in var.exclude_patterns : replace(v, "/^~/", "$HOME")]
83-
directory = replace(var.directory, "/^~/", "$HOME")
84-
output_dir = replace(var.output_dir, "/^~/", "$HOME")
81+
paths = [for v in var.paths : replace(v, "/^~/", "$$HOME")]
82+
exclude_patterns = [for v in var.exclude_patterns : replace(v, "/^~/", "$$HOME")]
83+
directory = replace(var.directory, "/^~/", "$$HOME")
84+
output_dir = replace(var.output_dir, "/^~/", "$$HOME")
8585

8686
archive_path = "${local.output_dir}/${var.archive_name}${local.extension}"
8787
}

registry/coder/modules/archive/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $(
4545
DEFAULT_COMPRESSION \
4646
DEFAULT_ARCHIVE_PATH \
4747
DEFAULT_DIRECTORY
48-
)
48+
)
4949
5050
$1 "\$@"
5151
EOF

0 commit comments

Comments
 (0)