Skip to content

Commit 7bf48ee

Browse files
committed
Fix update_libchdb cwd
1 parent 782a8c1 commit 7bf48ee

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/update_libchdb.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
21
#!/bin/bash
32

3+
# This script will download the latest libchdb release from GitHub and extract
4+
# the libchdb.so file to the current directory. This script is intended to be
5+
# used by the build process to ensure that the latest version of libchdb is
6+
# used.
7+
8+
# Change directory to the script's directory
9+
cd "$(dirname "$0")"
10+
411
# Get the newest release version
512
LATEST_RELEASE=$(curl --silent "https://api.github.com/repos/chdb-io/chdb/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
613

0 commit comments

Comments
 (0)