Fix quotes

This commit is contained in:
ephemeralsnow 2016-12-07 18:04:33 +09:00
parent b2457e3e21
commit 556b82da1c
1 changed files with 3 additions and 3 deletions

View File

@ -7,13 +7,13 @@ module VagrantPlugins
def detect?(machine) def detect?(machine)
machine.communicate.test <<-EOH.gsub(/^ */, '') machine.communicate.test <<-EOH.gsub(/^ */, '')
if test -r /etc/os-release; then if test -r /etc/os-release; then
source /etc/os-release && test x#{self.class.const_get(:GUEST_DETECTION_NAME)} = x$ID && exit source /etc/os-release && test 'x#{self.class.const_get(:GUEST_DETECTION_NAME)}' = "x$ID" && exit
fi fi
if test -x /usr/bin/lsb_release; then if test -x /usr/bin/lsb_release; then
/usr/bin/lsb_release -i 2>/dev/null | grep -qi #{self.class.const_get(:GUEST_DETECTION_NAME)} && exit /usr/bin/lsb_release -i 2>/dev/null | grep -qi '#{self.class.const_get(:GUEST_DETECTION_NAME)}' && exit
fi fi
if test -r /etc/issue; then if test -r /etc/issue; then
cat /etc/issue | grep -qi #{self.class.const_get(:GUEST_DETECTION_NAME)} && exit cat /etc/issue | grep -qi '#{self.class.const_get(:GUEST_DETECTION_NAME)}' && exit
fi fi
exit 1 exit 1
EOH EOH