diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index f663cdd3..2d5f65d4 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -37,7 +37,9 @@ impl Distribution { Ok(match (id, id_like) { (Some("debian"), _) | (_, Some("debian")) | (_, Some("ubuntu")) => Distribution::Debian, (_, Some("suse")) => Distribution::Suse, - (Some("arch"), _) | (_, Some("archlinux")) | (_, Some("arch")) => Distribution::Arch, + (Some("arch"), _) | (_, Some("archlinux")) | (_, Some("arch")) | (_, Some("anarchylinux")) => { + Distribution::Arch + } (Some("centos"), _) | (Some("ol"), _) => Distribution::CentOS, (Some("fedora"), _) => Distribution::Fedora, (Some("void"), _) => Distribution::Void, @@ -384,4 +386,8 @@ mod tests { test_template(&include_str!("os_release/manjaro"), Distribution::Arch); } + #[test] + fn test_anarchy() { + test_template(&include_str!("os_release/anarchy"), Distribution::Arch); + } } diff --git a/src/steps/os/os_release/anarchy b/src/steps/os/os_release/anarchy new file mode 100644 index 00000000..1adc4b61 --- /dev/null +++ b/src/steps/os/os_release/anarchy @@ -0,0 +1,6 @@ +NAME="Anarchy Linux" +PRETTY_NAME="Anarchy Linux" +ID=anarchy +ID_LIKE=anarchylinux +ANSI_COLOR="0;36" +HOME_URL="https://anarchylinux.org/"