Fix downloading of assets in pmctl
This commit is contained in:
@@ -35,7 +35,7 @@ var (
|
||||
},
|
||||
Beta: false,
|
||||
DevMode: false,
|
||||
Online: false,
|
||||
Online: true, // is disabled later based on command
|
||||
}
|
||||
|
||||
rootCmd = &cobra.Command{
|
||||
|
||||
@@ -107,9 +107,7 @@ func handleRun(cmd *cobra.Command, opts *Options) (err error) {
|
||||
func run(cmd *cobra.Command, opts *Options) (err error) {
|
||||
|
||||
// set download option
|
||||
if opts.AllowDownload {
|
||||
registry.Online = true
|
||||
}
|
||||
registry.Online = opts.AllowDownload
|
||||
|
||||
// parse identifier
|
||||
opts.ShortIdentifier = path.Dir(opts.Identifier)
|
||||
|
||||
Reference in New Issue
Block a user