Skip to content

Commit

Permalink
chore(releases): make latest an alias of nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
l1nxy committed Dec 20, 2024
1 parent 6091f25 commit 08415dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions foundryup/foundryup
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ main() {
# Install by downloading binaries
if [[ "$FOUNDRYUP_REPO" == "foundry-rs/foundry" && -z "$FOUNDRYUP_BRANCH" && -z "$FOUNDRYUP_COMMIT" ]]; then
FOUNDRYUP_VERSION=${FOUNDRYUP_VERSION:-nightly}
FOUNDRYUP_TAG=$FOUNDRYUP_VERSION

# Normalize versions (handle channels, versions without v prefix
if [[ "$FOUNDRYUP_VERSION" =~ ^nightly ]]; then
if [[ "$FOUNDRYUP_VERSION" =~ ^nightly || "$FOUNDRYUP_VERSION" == "latest" ]]; then
FOUNDRYUP_VERSION="nightly"
elif [[ "$FOUNDRYUP_VERSION" == [[:digit:]]* ]]; then
# Add v prefix
FOUNDRYUP_VERSION="v${FOUNDRYUP_VERSION}"
FOUNDRYUP_TAG="${FOUNDRYUP_VERSION}"
fi

FOUNDRYUP_TAG=$FOUNDRYUP_VERSION

say "installing foundry (version ${FOUNDRYUP_VERSION}, tag ${FOUNDRYUP_TAG})"

uname_s=$(uname -s)
Expand Down

0 comments on commit 08415dd

Please sign in to comment.