Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed May 3, 2021
1 parent 148a81c commit de57f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de57f31

Please sign in to comment.