Update plugins/hosts/arch/host.rb

Co-authored-by: Sophia Castellarin <sophia@hashicorp.com>
This commit is contained in:
Daniele Penazzo 2023-01-24 07:46:24 +01:00 committed by GitHub
parent 0ee7eb338f
commit 157a182ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ module VagrantPlugins
module HostArch
class Host < Vagrant.plugin("2", :host)
def detect?(env)
File.exist?("/etc/arch-release") and not File.exist?("/etc/artix-release")
File.exist?("/etc/arch-release") && !File.exist?("/etc/artix-release")
end
end
end