Skip to content

Commit 19519a0

Browse files
fix: add shebang to zed coder_script (#504)
## Description Add `#!/bin/sh` to zed_settings coder_script <!-- Briefly describe what this PR does and why --> ## Type of Change - [ ] New module - [ ] New template - [X] Bug fix - [ ] Feature/enhancement - [ ] Documentation - [ ] Other ## Module Information <!-- Delete this section if not applicable --> **Path:** `registry/coder/modules/zed` **New version:** `v1.1.1` **Breaking change:** [ ] Yes [X] No ## Testing & Validation - [X] Tests pass (`bun test`) - [X] Code formatted (`bun fmt`) - [X] Changes tested locally ## Related Issues #482 <!-- Link related issues or write "None" if not applicable -->
1 parent 63e4228 commit 19519a0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

registry/coder/modules/zed/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Zed is a high-performance, multiplayer code editor from the creators of Atom and
1919
module "zed" {
2020
count = data.coder_workspace.me.start_count
2121
source = "registry.coder.com/coder/zed/coder"
22-
version = "1.1.0"
22+
version = "1.1.1"
2323
agent_id = coder_agent.example.id
2424
}
2525
```
@@ -32,7 +32,7 @@ module "zed" {
3232
module "zed" {
3333
count = data.coder_workspace.me.start_count
3434
source = "registry.coder.com/coder/zed/coder"
35-
version = "1.1.0"
35+
version = "1.1.1"
3636
agent_id = coder_agent.example.id
3737
folder = "/home/coder/project"
3838
}
@@ -44,7 +44,7 @@ module "zed" {
4444
module "zed" {
4545
count = data.coder_workspace.me.start_count
4646
source = "registry.coder.com/coder/zed/coder"
47-
version = "1.1.0"
47+
version = "1.1.1"
4848
agent_id = coder_agent.example.id
4949
display_name = "Zed Editor"
5050
order = 1
@@ -57,7 +57,7 @@ module "zed" {
5757
module "zed" {
5858
count = data.coder_workspace.me.start_count
5959
source = "registry.coder.com/coder/zed/coder"
60-
version = "1.1.0"
60+
version = "1.1.1"
6161
agent_id = coder_agent.example.id
6262
agent_name = coder_agent.example.name
6363
}
@@ -73,7 +73,7 @@ You can declaratively set/merge settings with the `settings` input. Provide a JS
7373
module "zed" {
7474
count = data.coder_workspace.me.start_count
7575
source = "registry.coder.com/coder/zed/coder"
76-
version = "1.1.0"
76+
version = "1.1.1"
7777
agent_id = coder_agent.example.id
7878
7979
settings = jsonencode({

registry/coder/modules/zed/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ resource "coder_script" "zed_settings" {
7373
icon = "/icon/zed.svg"
7474
run_on_start = true
7575
script = <<-EOT
76+
#!/bin/sh
7677
set -eu
7778
SETTINGS_JSON='${replace(var.settings, "\"", "\\\"")}'
7879
if [ -z "$${SETTINGS_JSON}" ] || [ "$${SETTINGS_JSON}" = "{}" ]; then

0 commit comments

Comments
 (0)