fix(coder/modules/zed): change script shebang from sh to bash (#602)
This commit is contained in:
parent
43d05a9da4
commit
6b16cd3529
@ -32,7 +32,7 @@ module "zed" {
|
|||||||
module "zed" {
|
module "zed" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/zed/coder"
|
source = "registry.coder.com/coder/zed/coder"
|
||||||
version = "1.1.2"
|
version = "1.1.3"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
folder = "/home/coder/project"
|
folder = "/home/coder/project"
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ module "zed" {
|
|||||||
module "zed" {
|
module "zed" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/zed/coder"
|
source = "registry.coder.com/coder/zed/coder"
|
||||||
version = "1.1.2"
|
version = "1.1.3"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
display_name = "Zed Editor"
|
display_name = "Zed Editor"
|
||||||
order = 1
|
order = 1
|
||||||
@ -57,7 +57,7 @@ module "zed" {
|
|||||||
module "zed" {
|
module "zed" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/zed/coder"
|
source = "registry.coder.com/coder/zed/coder"
|
||||||
version = "1.1.2"
|
version = "1.1.3"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = coder_agent.example.name
|
agent_name = coder_agent.example.name
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ You can declaratively set/merge settings with the `settings` input. Provide a JS
|
|||||||
module "zed" {
|
module "zed" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/zed/coder"
|
source = "registry.coder.com/coder/zed/coder"
|
||||||
version = "1.1.2"
|
version = "1.1.3"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
|
||||||
settings = jsonencode({
|
settings = jsonencode({
|
||||||
|
|||||||
@ -73,7 +73,7 @@ resource "coder_script" "zed_settings" {
|
|||||||
icon = "/icon/zed.svg"
|
icon = "/icon/zed.svg"
|
||||||
run_on_start = true
|
run_on_start = true
|
||||||
script = <<-EOT
|
script = <<-EOT
|
||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
SETTINGS_JSON='${replace(var.settings, "\"", "\\\"")}'
|
SETTINGS_JSON='${replace(var.settings, "\"", "\\\"")}'
|
||||||
if [ -z "$${SETTINGS_JSON}" ] || [ "$${SETTINGS_JSON}" = "{}" ]; then
|
if [ -z "$${SETTINGS_JSON}" ] || [ "$${SETTINGS_JSON}" = "{}" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user