Skip to content

Commit

Permalink
Fix off by one error. (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-rieke authored Feb 9, 2024
1 parent cc2a451 commit 7be3fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atrium/vestibulum/trcshbase/trcsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ func ProcessDeploy(featherCtx *cap.FeatherContext, config *eUtils.DriverConfig,
config.EndDir = "."
config.Log.Printf("Preloading path %s env %s\n", trcPath, config.EnvRaw)
region := ""
if len(config.Regions) > 1 {
if len(config.Regions) > 0 {
region = config.Regions[0]
}

Expand Down Expand Up @@ -920,7 +920,7 @@ collaboratorReRun:
// Log for traceability.
config.Log.Println(deployLine)
region := ""
if len(config.Regions) > 1 {
if len(config.Regions) > 0 {
region = config.Regions[0]
}
err := processWindowsCmds(
Expand Down Expand Up @@ -959,7 +959,7 @@ collaboratorReRun:
} else {
config.FeatherCtx = featherCtx
region := ""
if len(config.Regions) > 1 {
if len(config.Regions) > 0 {
region = config.Regions[0]
}

Expand Down

0 comments on commit 7be3fc7

Please sign in to comment.