]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Need quotes for spaces in path
authorHunter Haugen <hunter@puppetlabs.com>
Thu, 26 Jun 2014 20:17:07 +0000 (13:17 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Thu, 26 Jun 2014 20:17:07 +0000 (13:17 -0700)
spec/acceptance/fqdn_rotate_spec.rb

index ee2afb5a92d1971531b316c52a7c76381a178f35..c37b35a39af31c1ffa4e57ae7bde4bb3bf729cd7 100755 (executable)
@@ -19,12 +19,12 @@ describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact(
       end
     end
     after :each do
-      shell("if [ -f #{facts_d}/fqdn.txt ] ; then rm #{facts_d}/fqdn.txt ; fi")
+      shell("if [ -f '#{facts_d}/fqdn.txt' ] ; then rm '#{facts_d}/fqdn.txt' ; fi")
     end
     before :all do
       #No need to create on windows, PE creates by default
       if fact('osfamily') !~ /windows/i
-        shell("mkdir -p #{facts_d}")
+        shell("mkdir -p '#{facts_d}'")
       end
     end
     it 'fqdn_rotates floats' do