Skip to content

Commit

Permalink
fix(foundryup): actually make set -e work
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Nov 18, 2023
1 parent c948388 commit 7e8580d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions foundryup/foundryup
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -eo pipefail

BASE_DIR=${XDG_CONFIG_HOME:-$HOME}
FOUNDRY_DIR=${FOUNDRY_DIR:-"$BASE_DIR/.foundry"}
Expand Down Expand Up @@ -266,8 +266,7 @@ check_cmd() {
}

# Run a command that should never fail. If the command fails execution
# will immediately terminate with an error showing the failing
# command.
# will immediately terminate with an error showing the failing command.
ensure() {
if ! "$@"; then err "command failed: $*"; fi
}
Expand Down Expand Up @@ -315,4 +314,4 @@ Contribute : https://github.com/orgs/foundry-rs/projects/2/
}


main "$@" || exit 1
main "$@"

0 comments on commit 7e8580d

Please sign in to comment.