Skip to content

Commit

Permalink
Add support for Arch Linux distribution
Browse files Browse the repository at this point in the history
This change adds support for the Arch Linux distribution (if is arch based on amd/x64) to the IsArchLinux() function.
The function will now return true if the operating system is Arch Linux or Arch ARM.
  • Loading branch information
whyakari authored Jul 15, 2023
1 parent 5e3aa8c commit 52fda55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/arch/arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func IsArchLinux() bool {
if err != nil {
return false
}
return strings.TrimSpace(string(out)) == "archarm"
return strings.TrimSpace(string(out)) == "archarm" || strings.TrimSpace(string(out)) == "arch"
}

func ArchCommands() []string {
Expand Down

0 comments on commit 52fda55

Please sign in to comment.