mirror of
https://github.com/inspec/inspec
synced 2024-12-18 00:53:22 +00:00
125e0915b2
This modifies `Inspec::DirProvider` to allow special characters in the file glob by escaping those characters via `Shellwords.shellescape`. This fixes #2111 (`inspec check` on path with special characters) Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
10 lines
216 B
Ruby
10 lines
216 B
Ruby
title 'special-path'
|
|
|
|
control 'normal-profile-1.0' do
|
|
impact 0.7
|
|
title 'Test Paths with Special Chars'
|
|
desc 'Not a real test, check with `inspec check`'
|
|
describe 'foo' do
|
|
it { should eq 'foo' }
|
|
end
|
|
end
|