Skip to content

Commit

Permalink
Merge pull request #193 from ftnk/fix-SmartOS-detection-in-check_os
Browse files Browse the repository at this point in the history
fix SmartOS detection
  • Loading branch information
mizzy committed Jul 3, 2013
2 parents 4baaa0a + ccb0d73 commit 41d907d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serverspec/backend/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def check_os
elsif (os = run_command('uname -sr')[:stdout]) && os =~ /SunOS/i
if os =~ /5.10/
'Solaris10'
elsif run_command('grep -q SmartOS /etc/release')
elsif run_command('grep -q SmartOS /etc/release')[:exit_status] == 0
'SmartOS'
else
'Solaris'
Expand Down

0 comments on commit 41d907d

Please sign in to comment.