From 556b82da1c31d7cd18d3d544c052da52dfa994b2 Mon Sep 17 00:00:00 2001 From: ephemeralsnow Date: Wed, 7 Dec 2016 18:04:33 +0900 Subject: [PATCH] Fix quotes --- plugins/guests/linux/guest.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/guests/linux/guest.rb b/plugins/guests/linux/guest.rb index d86d1daf3..a79bb65c4 100644 --- a/plugins/guests/linux/guest.rb +++ b/plugins/guests/linux/guest.rb @@ -7,13 +7,13 @@ module VagrantPlugins def detect?(machine) machine.communicate.test <<-EOH.gsub(/^ */, '') 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 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 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 exit 1 EOH