fix concat broken on windows due to case sensitive regexp -- made it case insensitive

This commit is contained in:
Geoff Williams 2014-07-09 13:45:16 +10:00
parent 97f77f7459
commit 0ce713fd9c
2 changed files with 5 additions and 5 deletions

View file

@ -31,8 +31,8 @@ class concat::setup {
# this goes smoothly, we should move towards completely eliminating the .sh
# version.
$script_name = $::osfamily? {
/(Windows|Solaris)/ => 'concatfragments.rb',
default => 'concatfragments.sh'
/(?i:(Windows|Solaris))/ => 'concatfragments.rb',
default => 'concatfragments.sh'
}
$script_path = "${concatdir}/bin/${script_name}"

View file

@ -61,12 +61,12 @@ describe 'concat::setup', :type => :class do
end
end # on osfamily Solaris
context "on osfamily Windows" do
context "on osfamily windows" do
concatdir = '/foo'
let(:facts) do
{
:concat_basedir => concatdir,
:osfamily => 'Windows',
:osfamily => 'windows',
:id => 'batman',
}
end
@ -80,5 +80,5 @@ describe 'concat::setup', :type => :class do
:backup => false,
})
end
end # on osfamily Windows
end # on osfamily windows
end