This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Répertoire de destination | |
| OUTPUT_DIR="src/main/resources/db/migration" | |
| # Demander la version | |
| read -p "Entrez le numéro de version : " VERSION | |
| # Demander le nom | |
| read -p "Entrez le nom (espaces autorisés) : " NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # INSTALL_DIR doit être une variable d'environnement (exple: /usr/bin). | |
| SENTRY_BIN="${INSTALL_DIR}/sentry-cli" | |
| chmod +x $SENTRY_BIN | |
| VERSION=$($SENTRY_BIN releases propose-version) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # INSTALL_DIR doit être une variable d'environnement (exple: /usr/bin). | |
| VERSION="latest" | |
| PLATFORM=$(uname -s) | |
| ARCH=$(uname -m) | |
| DOWNLOAD_URL="https://release-registry.services.sentry.io/apps/sentry-cli/${VERSION}?response=download&arch=${ARCH}&platform=${PLATFORM}&package=sentry-cli" | |
| HTTP_CODE=$(curl -SL --progress-bar "$DOWNLOAD_URL" --output "${INSTALL_DIR}/sentry-cli" --write-out "%{http_code}") |