Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Mar 7, 2025
1 parent 005c6a5 commit 80584d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connection/reconcile_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func downloadToTempFile(ctx context.Context, fileURL string) (string, error) {
// Create a temporary file
// First check if `/tmp/packages` directory exists
if _, err := os.Stat("/tmp/packages"); os.IsNotExist(err) {
if err := os.MkdirAll("/tmp/packages", 0755); err != nil {
if err := os.MkdirAll("/tmp/packages", 0750); err != nil {
return "", fmt.Errorf("failed to create temp directory: %v", err)
}
} else {
Expand Down

0 comments on commit 80584d0

Please sign in to comment.