Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/install-script-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check install script

on:
pull_request:
paths:
- 'scripts/install.sh'

jobs:
shellcheck:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install ShellCheck
run: sudo apt-get update && sudo apt-get install -y shellcheck

- name: Run ShellCheck on install script
run: |
shellcheck --shell=dash scripts/install.sh
8 changes: 4 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ downloadBinary() {
CHECKSUM_URL="https://${CDN}/rill/${VERSION}/checksums.txt"

if [ "$NON_INTERACTIVE" = "true" ]; then
CURL_PROGRESS="--silent --show-error"
set -- "--silent" "--show-error"
else
CURL_PROGRESS="--progress-bar"
set -- "--progress-bar"
fi

printf "Downloading binary: %s\n" "$BINARY_URL"
curl --location ${CURL_PROGRESS} "${BINARY_URL}" --output rill_${PLATFORM}.zip
curl --location "$@" "${BINARY_URL}" --output rill_${PLATFORM}.zip

printf "\nDownloading checksum: %s\n" "$CHECKSUM_URL"
curl --location ${CURL_PROGRESS} "${CHECKSUM_URL}" --output checksums.txt
curl --location "$@" "${CHECKSUM_URL}" --output checksums.txt

printf "\nVerifying the SHA256 checksum of the downloaded binary:\n"
${sha256_verify} checksums.txt
Expand Down
Loading