mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +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
|
def self.home_path
|
||||||
Dir.home
|
Dir.home
|
||||||
rescue ArgumentError, NoMethodError
|
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)
|
require "etc" unless defined?(Etc)
|
||||||
Etc.getpwuid.dir
|
Etc.getpwuid.dir
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue