Skip to content

Commit 74abeac

Browse files
fix: escape awk field references for Terraform template processing
The awk-based YAML parsing improvement needed proper escaping of field references as 2936092 so Terraform's templatefile() function processes them correctly. This resolves template syntax errors that were causing the DateTime.pm installation failures.
1 parent 19c5953 commit 74abeac

File tree

1 file changed

+2
-2
lines changed
  • registry/coder/modules/kasmvnc

1 file changed

+2
-2
lines changed

registry/coder/modules/kasmvnc/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ get_http_dir() {
233233

234234
# Check the system configuration path
235235
if [[ -e /etc/kasmvnc/kasmvnc.yaml ]]; then
236-
d=$(grep -E '^\s*httpd_directory:.*$' "/etc/kasmvnc/kasmvnc.yaml" | awk '{print $2}')
236+
d=$(grep -E '^\s*httpd_directory:.*$' "/etc/kasmvnc/kasmvnc.yaml" | awk '{print $$2}')
237237
if [[ -n "$d" && -d "$d" ]]; then
238238
httpd_directory=$d
239239
fi
240240
fi
241241

242242
# Check the home directory for overriding values
243243
if [[ -e "$HOME/.vnc/kasmvnc.yaml" ]]; then
244-
d=$(grep -E '^\s*httpd_directory:.*$' "$HOME/.vnc/kasmvnc.yaml" | awk '{print $2}')
244+
d=$(grep -E '^\s*httpd_directory:.*$' "$HOME/.vnc/kasmvnc.yaml" | awk '{print $$2}')
245245
if [[ -n "$d" && -d "$d" ]]; then
246246
httpd_directory=$d
247247
fi

0 commit comments

Comments
 (0)