Skip to content

Commit 89b8297

Browse files
committed
Apply suggestions from code review
1 parent ad084aa commit 89b8297

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

agent/agent_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ func TestAgent_Session_EnvironmentVariables(t *testing.T) {
300300
},
301301
}
302302
banner := codersdk.ServiceBannerConfig{}
303-
fs := afero.NewMemMapFs()
304303
session := setupSSHSession(t, manifest, banner, nil, func(_ *agenttest.Client, opts *agent.Options) {
305-
opts.Filesystem = fs
306304
opts.ScriptDataDir = tmpdir
307305
opts.EnvironmentVariables["MY_OVERRIDE"] = "true"
308306
})

cli/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
345345
Flag: "script-data-dir",
346346
Default: os.TempDir(),
347347
Description: "Specify the location for storing script data.",
348-
Env: "CODER_AGENT_SCRIPT_DIR",
348+
Env: "CODER_AGENT_SCRIPT_DATA_DIR",
349349
Value: clibase.StringOf(&scriptDataDir),
350350
},
351351
{

cli/testdata/coder_agent_--help.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OPTIONS:
3333
--prometheus-address string, $CODER_AGENT_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
3434
The bind address to serve Prometheus metrics.
3535

36-
--script-data-dir string, $CODER_AGENT_SCRIPT_DIR (default: /tmp)
36+
--script-data-dir string, $CODER_AGENT_SCRIPT_DATA_DIR (default: /tmp)
3737
Specify the location for storing script data.
3838

3939
--ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 72h)

0 commit comments

Comments
 (0)