Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiMysko authored Aug 3, 2021
1 parent 7f9c5b8 commit cdb9463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/travis/build/appliances/setup_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def args
end

def exports
puts values.inspect
values = secrets.map { |value| Shellwords.escape(value) }
puts values.inspect
values = values.map.with_index { |value, ix| "export SECRET_#{ix}=#{quotize_env(value)}" }
values.join(' ')
end
Expand Down Expand Up @@ -132,7 +134,7 @@ def quotize_env(value)
if (value[0] == '"' && value[-1] == '"') || (value[0] == "'" && value[-1] == "'")
"#{var_name}#{value}"
else
"#{var_name}'#{value}'"
"#{var_name}\"#{value}\""
end
end
end
Expand Down

0 comments on commit cdb9463

Please sign in to comment.