Skip to content

Commit

Permalink
Fix foundryup (#6155)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Oct 28, 2023
1 parent f5b9c02 commit 459da57
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions foundryup/foundryup
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,7 @@ main() {
FOUNDRYUP_TAG=$FOUNDRYUP_VERSION

# Normalize versions (handle channels, versions without v prefix
if [[ "$FOUNDRYUP_VERSION" == "nightly" ]]; then
# Locate real nightly tag
SHA=$(ensure curl -sSf "https://api.github.com/repos/$FOUNDRYUP_REPO/git/refs/tags/nightly" \
| grep -Eo '"sha"[^,]*' \
| grep -Eo '[^:]*$' \
| tr -d '"' \
| tr -d ' ' \
| cut -d ':' -f2 )
FOUNDRYUP_TAG="nightly-${SHA}"
elif [[ "$FOUNDRYUP_VERSION" == nightly* ]]; then
if [[ "$FOUNDRYUP_VERSION" =~ ^nightly ]]; then
FOUNDRYUP_VERSION="nightly"
elif [[ "$FOUNDRYUP_VERSION" == [[:digit:]]* ]]; then
# Add v prefix
Expand Down

0 comments on commit 459da57

Please sign in to comment.