Skip to content

Commit 0cef8c1

Browse files
BrewTestBotdaeho-ro
authored andcommitted
shadowenv 3.3.1
shadowenv: update test Signed-off-by: Rui Chen <[email protected]>
1 parent d131aa3 commit 0cef8c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Formula/s/shadowenv.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class 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
6666
end

0 commit comments

Comments
 (0)