summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/hcl/app.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/hcl/app.rb b/lib/hcl/app.rb
index f987eb9..6cfa0f8 100644
--- a/lib/hcl/app.rb
+++ b/lib/hcl/app.rb
@@ -190,7 +190,11 @@ EOM
end
def has_security_command
- File.exists?('/usr/bin/security')
+ if @has_security.nil?
+ @has_security = File.exists?('/usr/bin/security')
+ else
+ @has_security
+ end
end
def load_password config