File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11class Shadowenv < Formula
22 desc "Reversible directory-local environment variable manipulations"
33 homepage "https://shopify.github.io/shadowenv/"
4- url "https://github.com/Shopify/shadowenv/archive/refs/tags/3.0.3 .tar.gz"
5- sha256 "ad04e1d5ae88e358f0ee6ec987bd88b7f8c489409fafc6286690aeacb074ddea "
4+ url "https://github.com/Shopify/shadowenv/archive/refs/tags/3.3.1 .tar.gz"
5+ sha256 "726c2a655749213cd7f0efe9dca199f65c11b58774c5550ea4834d5b2334b27c "
66 license "MIT"
77
88 # There can be a notable gap between when a version is tagged and a
@@ -56,11 +56,11 @@ def install
5656 ] ,
5757 }
5858 # Read ...'\"'\"'... on the next line as a ruby `...' + "'" + '...` but for bash
59- shadowenv_command = "#{ bin } /shadowenv hook '\" '\" '#{ hash } :#{ data . to_json } '\" '\" ' 2> /dev/null "
59+ shadowenv_cmd = "export __shadowenv_data= '\" '\" '#{ hash } :#{ data . to_json } '\" '\" '; #{ bin } /shadowenv hook "
6060 print_vars =
6161 "echo EXAMPLE:$EXAMPLE; echo EXAMPLE2:$EXAMPLE2; echo EXAMPLE3:$EXAMPLE3; echo EXAMPLE_PATH:$EXAMPLE_PATH;"
6262
6363 assert_equal expected_output ,
64- shell_output ( "bash -c '#{ environment } #{ print_vars } echo ---; eval \" $(#{ shadowenv_command } )\" ; #{ print_vars } '" )
64+ shell_output ( "bash -c '#{ environment } #{ print_vars } echo ---; eval \" $(#{ shadowenv_cmd } )\" ; #{ print_vars } '" )
6565 end
6666end
You can’t perform that action at this time.
0 commit comments