Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Dec 25, 2024
1 parent c9e9dab commit 06c415f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/plugin_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,9 @@ func installPlugin(

if pullOnly {
cmd.Println("Plugin binary downloaded to", pluginFilename)
// Only delete the checksums file if the --pull-only flag is set
if cleanup {
if err := os.Remove(checksumsFilename); err != nil {
cmd.Println("There was an error deleting the checksums file: ", err)
}
// Only the checksums file will be deleted if the --pull-only flag is set.
if err := os.Remove(checksumsFilename); err != nil {
cmd.Println("There was an error deleting the file: ", err)
}
return
}
Expand Down

0 comments on commit 06c415f

Please sign in to comment.