exe/secret_env in secret_env-0.6.1 vs exe/secret_env in secret_env-0.7.0

- old
+ new

@@ -1,10 +1,17 @@ #!/usr/bin/env ruby require "secret_env" require 'open3' config, env = ARGV.shift(2) -SecretEnv.load(env: env, secrets_file: config) + +if SecretEnv.env?(env: env, secrets_file: config) + SecretEnv.load(env: env, secrets_file: config) +else + SecretEnv.load(env: ENV['SECRET_ENV'], secrets_file: config) + ARGV.unshift(env) +end + stdin, stdoe, t = Open3.popen2e(*ARGV) stdin.close stdoe.each do |line| puts line end