Skip to content

Commit

Permalink
fix(script): fix install script
Browse files Browse the repository at this point in the history
  • Loading branch information
QaidVoid committed Nov 30, 2024
1 parent 26e3a0e commit 115056f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ main() {

# Get latest release URL
echo "Downloading Soar..."
if [[ "$SOAR_VERSION" == *"nightly"* ]]; then
if echo "$SOAR_VERSION" | grep -q "nightly"; then
RELEASE_URL="https://github.com/pkgforge/soar/releases/download/nightly/soar-nightly-$ARCH-linux"
elif [[ "$SOAR_VERSION" == *"latest"* ]]; then
elif echo "$SOAR_VERSION" | grep -q "latest"; then
RELEASE_URL="https://github.com/pkgforge/soar/releases/latest/download/soar-$ARCH-linux"
else
RELEASE_URL="https://github.com/pkgforge/soar/releases/download/v$SOAR_VERSION/soar-$ARCH-linux"
fi
echo $RELEASE_URL
echo "$RELEASE_URL"

# Download and install
$DOWNLOAD_TOOL "$RELEASE_URL" > "$INSTALL_PATH/soar"
Expand Down

0 comments on commit 115056f

Please sign in to comment.