You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since piped commands run in a subshell, when we have something like ensure download "$BIN_ARCHIVE_URL" | ensure tar -xzC "$FOUNDRY_BIN_DIR", foundryup will not properly exit if tar fails.
Explanation:
When curling a file that doesn't exist, curl seems to exit with code 0 when piping that output, and since the piped output
to tar runs in a subshell, it doesn't exit the script.
The text was updated successfully, but these errors were encountered:
Component
Foundryup
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (8c11482 2023-11-16T00:32:37.968294000Z)
What command(s) is the bug in?
foundryup
Operating System
macOS (Apple Silicon)
Describe the bug
Since piped commands run in a subshell, when we have something like
ensure download "$BIN_ARCHIVE_URL" | ensure tar -xzC "$FOUNDRY_BIN_DIR"
,foundryup
will not properly exit iftar
fails.Steps to reproduce:
foundryup -v abc
Output:
Explanation:
When
curl
ing a file that doesn't exist,curl
seems to exit with code 0 when piping that output, and since the piped outputto
tar
runs in a subshell, it doesn't exit the script.The text was updated successfully, but these errors were encountered: