Fix downloading of assets in pmctl

This commit is contained in:
Daniel
2020-06-20 16:06:36 +02:00
parent b3fb2564ea
commit 95be1085bc
2 changed files with 2 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ var (
},
Beta: false,
DevMode: false,
Online: false,
Online: true, // is disabled later based on command
}
rootCmd = &cobra.Command{

View File

@@ -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)