Skip to content

Commit

Permalink
update suse detect to be case insensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Quick <jquick@chef.io>
  • Loading branch information
jquick committed Nov 1, 2017
1 parent 64a0ccd commit 42e6dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/train/platforms/detect/specifications/os.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ def self.load
}
plat.name('opensuse').title('OpenSUSE Linux').in_family('suse')
.detect {
true if unix_file_contents('/etc/SuSE-release') =~ /^openSUSE/
true if unix_file_contents('/etc/SuSE-release') =~ /^opensuse/i
}
plat.name('suse').title('Suse Linux').in_family('suse')
.detect {
true if unix_file_contents('/etc/SuSE-release') =~ /suse/
true if unix_file_contents('/etc/SuSE-release') =~ /suse/i
}

# arch
Expand Down

0 comments on commit 42e6dff

Please sign in to comment.