fix: run install.sh error (#4989)

* fix: use '/bin/sh' shebang and remove function key word

* ci: check install.sh in nightly CI
This commit is contained in:
zyy17
2024-11-14 05:54:24 +08:00
committed by GitHub
parent d7c3c8e124
commit 0089cf1b4f
3 changed files with 22 additions and 4 deletions

14
.github/scripts/check-install-script.sh vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
# Get the latest version of github.com/GreptimeTeam/greptimedb
VERSION=$(curl -s https://api.github.com/repos/GreptimeTeam/greptimedb/releases/latest | jq -r '.tag_name')
echo "Downloading the latest version: $VERSION"
# Download the install script
curl -fsSL https://raw.githubusercontent.com/greptimeteam/greptimedb/main/scripts/install.sh | sh -s $VERSION
# Execute the `greptime` command
./greptime --version