mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: remove overwritten of parsedCmd
This commit is contained in:
@@ -72,11 +72,6 @@ func NewPackageManagerGuard(config PackageManagerGuardConfig,
|
|||||||
func (g *packageManagerGuard) Run(ctx context.Context, args []string, parsedCommand *packagemanager.ParsedCommand) error {
|
func (g *packageManagerGuard) Run(ctx context.Context, args []string, parsedCommand *packagemanager.ParsedCommand) error {
|
||||||
log.Debugf("Running package manager guard with args: %v", args)
|
log.Debugf("Running package manager guard with args: %v", args)
|
||||||
|
|
||||||
parsedCommand, err := g.packageManager.ParseCommand(args)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("failed to parse command: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if !parsedCommand.HasInstallTarget() {
|
if !parsedCommand.HasInstallTarget() {
|
||||||
log.Debugf("No install target found, continuing execution")
|
log.Debugf("No install target found, continuing execution")
|
||||||
return g.continueExecution(ctx, parsedCommand)
|
return g.continueExecution(ctx, parsedCommand)
|
||||||
|
|||||||
Reference in New Issue
Block a user