Skip to content

Commit

Permalink
Make sure tools directory actually exists
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Nov 8, 2016
1 parent 56b6195 commit 8a8ba08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/facter/xcode_active_directory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
if $CHILD_STATUS.exitstatus.nonzero?
nil
else
output
if File.exist?(output.to_s.strip)
output
else
nil
end
end
end
end

0 comments on commit 8a8ba08

Please sign in to comment.