mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
minor comment updates
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
This commit is contained in:
parent
fd0708076f
commit
b0ad73c973
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue