Ensure Arch Plugin doesn't detect Artix Linux
Some Artix Linux Distributions may be "migrated" from Arch and contain the "/etc/arch-release" file, leading to an incorrect OS being detected.
This commit is contained in:
parent
56d6cbaa8e
commit
0ee7eb338f
@ -4,7 +4,7 @@ module VagrantPlugins
|
||||
module HostArch
|
||||
class Host < Vagrant.plugin("2", :host)
|
||||
def detect?(env)
|
||||
File.exist?("/etc/arch-release")
|
||||
File.exist?("/etc/arch-release") and not File.exist?("/etc/artix-release")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user