Skip to content

Commit 42750fe

Browse files
committed
Merge pull request #292 from hunner/fix_rm
Need quotes for spaces in path
2 parents a3de985 + 1b893ff commit 42750fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/acceptance/fqdn_rotate_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
end
2020
end
2121
after :each do
22-
shell("if [ -f #{facts_d}/fqdn.txt ] ; then rm #{facts_d}/fqdn.txt ; fi")
22+
shell("if [ -f '#{facts_d}/fqdn.txt' ] ; then rm '#{facts_d}/fqdn.txt' ; fi")
2323
end
2424
before :all do
2525
#No need to create on windows, PE creates by default
2626
if fact('osfamily') !~ /windows/i
27-
shell("mkdir -p #{facts_d}")
27+
shell("mkdir -p '#{facts_d}'")
2828
end
2929
end
3030
it 'fqdn_rotates floats' do

0 commit comments

Comments
 (0)