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-13 21:54:24 +00:00
committed by GitHub
parent d7c3c8e124
commit 0089cf1b4f
3 changed files with 22 additions and 4 deletions
+14
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