Skip to content

Commit

Permalink
Merge pull request #121 from ioito/hotfix/qx-aws-amazon-linux
Browse files Browse the repository at this point in the history
fix: aws amazon linux
  • Loading branch information
ioito authored Apr 10, 2024
2 parents 5c1bbbd + 8330d48 commit 550ff8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/imagetools/imagetools.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func normalizeOsDistribution(osDist string, imageName string) string {
return "Fedora"
} else if strings.Contains(osDist, "alma") {
return "AlmaLinux"
} else if strings.Contains(osDist, "amazon linux") || strings.Contains(osDist, "amazonlinux") {
} else if strings.Contains(osDist, "amazon") && strings.Contains(osDist, "linux") {
return "Amazon Linux"
} else if strings.Contains(osDist, "windows") {
for _, ver := range []string{"2003", "2008", "2012", "2016", "2019", "2022"} {
Expand Down

0 comments on commit 550ff8a

Please sign in to comment.