Skip to content

Commit

Permalink
Add linux mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcane committed Sep 23, 2019
1 parent 0dfd6e4 commit 02e5530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func DownloadKubectl(version string) error {

// elf - application/x-executable check
mime, _, err := mimetype.DetectFile(kubectl)
if mime != "application/octet-stream" {
if mime != "application/octet-stream" && mime != "application/x-executable" {
fmt.Printf("The downloaded binary is not in the expected format. Please check the version and try again.")
os.Remove(kubectl)
os.Exit(1)
Expand Down

0 comments on commit 02e5530

Please sign in to comment.