Skip to content

Commit a3f9f2e

Browse files
author
Gabriel Monroy
committed
Merge pull request #1961 from mboersma/hotfix-unit-urls
fix(deisctl): create unit download URL properly after move to subdir
2 parents 45015a5 + c34be6b commit a3f9f2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deisctl/cmd/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Options:
296296
return err
297297
}
298298
// download and save the unit files to the specified path
299-
rootURL := "https://raw.githubusercontent.com/deis/deis/deisctl/"
299+
rootURL := "https://raw.githubusercontent.com/deis/deis/"
300300
tag := args["--tag"].(string)
301301
units := []string{
302302
"deis-builder.service",
@@ -311,7 +311,7 @@ Options:
311311
"deis-router.service",
312312
}
313313
for _, unit := range units {
314-
src := rootURL + tag + "/units/" + unit
314+
src := rootURL + tag + "/deisctl/units/" + unit
315315
dest := filepath.Join(dir, unit)
316316
res, err := http.Get(src)
317317
if err != nil {

0 commit comments

Comments
 (0)