Move promptViewScript() call to installScripts()
This commit is contained in:
parent
d6b5696a2c
commit
57c1a1702a
5
build.go
5
build.go
@ -137,11 +137,6 @@ func buildPackage(ctx context.Context, script string, mgr manager.Manager) ([]st
|
||||
distroChanged = true
|
||||
}
|
||||
|
||||
err = promptViewScript(script)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
fl, err := os.Open(script)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -101,6 +101,11 @@ func flattenFoundPkgs(found map[string][]db.Package, verb string) []db.Package {
|
||||
// installScripts builds and installs LURE build scripts
|
||||
func installScripts(ctx context.Context, mgr manager.Manager, scripts []string) {
|
||||
for _, script := range scripts {
|
||||
err := promptViewScript(script)
|
||||
if err != nil {
|
||||
log.Fatal("Failed to prompt user to view build script").Err(err).Send()
|
||||
}
|
||||
|
||||
builtPkgs, _, err := buildPackage(ctx, script, mgr)
|
||||
if err != nil {
|
||||
log.Fatal("Error building package").Err(err).Send()
|
||||
|
Loading…
Reference in New Issue
Block a user