diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 127b481..50e33e9 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -203,7 +203,7 @@ func (c *apiClient) fileExistsSudo(d *schema.ResourceData) (bool, error) { cmd := fmt.Sprintf("test ! -f %s", path) err = session2.Run(cmd) - return err == nil, err + return err != nil, err } return true, nil