minor comment updates

Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
This commit is contained in:
Vivek Singh 2020-12-02 12:31:16 +05:30
parent fd0708076f
commit b0ad73c973

View file

@ -14,7 +14,7 @@ module Inspec
def self.home_path
Dir.home
rescue ArgumentError, NoMethodError
# $HOME is not set in systemd service File.expand_path('~') will not work here
# If ENV['HOME'] is not set, Dir.home will fail due to expanding the ~. Fallback to Etc.
require "etc" unless defined?(Etc)
Etc.getpwuid.dir
end