Skip to content

Commit

Permalink
chore: improve ux, installer (#932)
Browse files Browse the repository at this point in the history
<!--
Pull requests are squashed and merged using:
- their title as the commit message
- their description as the commit body

Having a good title and description is important for the users to get
readable changelog.
-->

<!-- 1. Explain WHAT the change is about -->

-

<!-- 2. Explain WHY the change cannot be made simpler -->

-

<!-- 3. Explain HOW users should update their code -->

#### Migration notes

---

- [ ] The change comes with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
  • Loading branch information
j03-dev authored Dec 2, 2024
1 parent 353c17d commit 6f5adbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/metatype.dev/shared/install/meta-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ executable and add it to your `PATH` or use the automated method below.
- An installer script is also provided for the CLI in our repository. Curl and install in it with the following one-liner. The installer may ask for your password.

```bash
curl -fsSL https://raw.githubusercontent.com/metatypedev/metatype/main/installer.sh | bash
curl -fsSL https://metatype.dev/installer.sh | bash
```

:::info
Expand Down
4 changes: 2 additions & 2 deletions installer.sh → docs/metatype.dev/static/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ EXT=tar.gz
NAME=meta-cli
EXE=meta

INSTALLER_URL="https://raw.githubusercontent.com/$ORG/$REPO/main/installer.sh"
INSTALLER_URL="https://metatype.dev/install.sh"
RELEASE_URL="https://github.com/$ORG/$REPO/releases"

LATEST_VERSION=$(curl "$RELEASE_URL/latest" -s -L -I -o /dev/null -w '%{url_effective}')
Expand Down Expand Up @@ -72,7 +72,7 @@ fi
DOWNLOAD_URL="$RELEASE_URL/download/v$VERSION/$ASSET.$EXT"
echo $DOWNLOAD_URL

if curl --fail --silent --location --output "$TMP_DIR/$ASSET.$EXT" "$DOWNLOAD_URL"; then
if curl --fail --location --progress-bar --output "$TMP_DIR/$ASSET.$EXT" "$DOWNLOAD_URL"; then
printf "Downloaded successfully: %s\n" "$ASSET.$EXT"
else
cat >&2 <<EOF
Expand Down

0 comments on commit 6f5adbc

Please sign in to comment.