File tree 1 file changed +3
-15
lines changed
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ download_and_extract() {
29
29
}
30
30
31
31
# Get the newest release version
32
- LATEST_RELEASE=v2 .1.1
32
+ LATEST_RELEASE=v3 .1.2
33
33
34
34
# Select the correct package based on OS and architecture
35
35
case " $( uname -s) " in
@@ -66,15 +66,9 @@ if ! download_and_extract "$DOWNLOAD_URL"; then
66
66
fi
67
67
fi
68
68
69
- # check if --local flag is passed
70
- if [[ " $1 " == " --local" ]]; then
71
- # Set execute permission for libchdb.so
72
- chmod +x libchdb.so
69
+ chmod +x libchdb.so
73
70
74
- # Clean up
75
- rm -f libchdb.tar.gz
76
- exit 0
77
- elif [[ " $1 " == " --global" ]]; then
71
+ if [[ " $1 " == " --global" ]]; then
78
72
# If current uid is not 0, check if sudo is available and request the user to input the password
79
73
if [[ $EUID -ne 0 ]]; then
80
74
command -v sudo > /dev/null 2>&1 || { echo >&2 " This script requires sudo privileges but sudo is not installed. Aborting." ; exit 1; }
@@ -119,13 +113,7 @@ elif [[ "$1" == "--global" ]]; then
119
113
${SUDO} ldconfig
120
114
fi
121
115
122
- # Clean up
123
- rm -f libchdb.tar.gz libchdb.so chdb.h
124
-
125
116
GREENECHO " Installation completed successfully." ; ENDECHO
126
117
GREENECHO " If any error occurred, please report it to:" ; ENDECHO
127
118
GREENECHO " https://github.com/chdb-io/chdb/issues/new/choose" ; ENDECHO
128
- else
129
- echo " Invalid option. Use --local to install locally or --global to install globally."
130
- exit 1
131
119
fi
You can’t perform that action at this time.
0 commit comments