Skip to content

Commit

Permalink
Run install script in bash instead of sh, fix another newline print
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Aug 3, 2024
1 parent 8d757ac commit 9864744
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

PROGRAM_NAME="rokit"
REPOSITORY="rojo-rbx/rokit"
Expand Down Expand Up @@ -56,10 +56,10 @@ if [ ! -z "$1" ]; then
# Fetch a specific version from given script argument
VERSION_PATTERN="$1"
API_URL="https://github.com/gitapi/repos/$REPOSITORY/releases/tags/v$1"
printf "\n[1 / 3] Looking for $PROGRAM_NAME release with tag 'v$1'"
printf "\n[1 / 3] Looking for $PROGRAM_NAME release with tag 'v$1'\n"
else
# Fetch the latest release from the GitHub API
printf "\n[1 / 3] Looking for latest $PROGRAM_NAME release"
printf "\n[1 / 3] Looking for latest $PROGRAM_NAME release\n"
fi
FILE_PATTERN="${PROGRAM_NAME}-${VERSION_PATTERN}-${OS}-${ARCH}.zip"

Expand Down

0 comments on commit 9864744

Please sign in to comment.