Skip to content

Commit

Permalink
Fix sudo rm
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed May 6, 2021
1 parent f072bbb commit e82bbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/remote_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (c *RemoteClient) DeleteFileSudo(d *schema.ResourceData) error {
}
defer session.Close()

cmd := fmt.Sprintf("sudo cat %s", d.Get("path").(string))
cmd := fmt.Sprintf("sudo rm %s", d.Get("path").(string))
return session.Run(cmd)
}

Expand Down

0 comments on commit e82bbbb

Please sign in to comment.