From 249538faaaee2d916b656829fdd82815d4c46a55 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 7 Feb 2023 20:44:41 +0100 Subject: [PATCH] chore(foundryup): print banner after arg parsing (#4298) --- foundryup/foundryup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/foundryup/foundryup b/foundryup/foundryup index 78af7b6cafac..3adc9616300d 100755 --- a/foundryup/foundryup +++ b/foundryup/foundryup @@ -10,7 +10,6 @@ BINS=(forge cast anvil chisel) export RUSTFLAGS="-C target-cpu=native" main() { - banner need_cmd git need_cmd curl @@ -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"