Skip to content

Commit

Permalink
chore(foundryup): print banner after arg parsing (#4298)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Feb 7, 2023
1 parent d7019d0 commit 249538f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions foundryup/foundryup
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ BINS=(forge cast anvil chisel)
export RUSTFLAGS="-C target-cpu=native"

main() {
banner
need_cmd git
need_cmd curl

Expand All @@ -29,10 +28,15 @@ main() {
exit 0
;;
*)
err "internal error: unknown option \"$1\"\n";;
warn "unknown option: $1"
usage
exit 1
esac; shift
done

# Print the banner after successfully parsing args
banner

if [ -n "$FOUNDRYUP_PR" ]; then
if [ -z "$FOUNDRYUP_BRANCH" ]; then
FOUNDRYUP_BRANCH="refs/pull/$FOUNDRYUP_PR/head"
Expand Down

0 comments on commit 249538f

Please sign in to comment.