Skip to content

Commit f508467

Browse files
author
Aaron Schlesinger
committed
fix(build.go): create a new ls command for each loop iteration
1 parent ddb552b commit f508467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ func build(conf *Config, builderKey, gitSha string) error {
246246
}
247247

248248
// poll the s3 server to ensure the slug exists
249-
lsCmd := mcCmd(configDir, "ls", pushURL)
250249
for {
251250
// for now, assume the error indicates that the slug wasn't there, nothing else
252251
// TODO: implement https://github.com/deis/builder/issues/80, which will clean this up siginficantly
252+
lsCmd := mcCmd(configDir, "ls", pushURL)
253253
if err := run(lsCmd); err == nil {
254254
break
255255
}

0 commit comments

Comments
 (0)