mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08:00
Tiny improvement in download-latest.sh
This commit is contained in:
parent
b9e060423f
commit
e4cb7ed30f
@ -161,7 +161,7 @@ get_archi() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
success_usage() {
|
success_usage() {
|
||||||
printf "$GREEN%s\n$DEFAULT" "MeiliSearch binary successfully downloaded as '$BINARY_NAME' file."
|
printf "$GREEN%s\n$DEFAULT" "MeiliSearch $latest binary successfully downloaded as '$binary_name' file."
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Run it:'
|
echo 'Run it:'
|
||||||
echo ' $ ./meilisearch'
|
echo ' $ ./meilisearch'
|
||||||
@ -193,16 +193,16 @@ echo "Downloading MeiliSearch binary $latest for $os, architecture $archi..."
|
|||||||
case "$os" in
|
case "$os" in
|
||||||
'windows')
|
'windows')
|
||||||
release_file="meilisearch-$os-$archi.exe"
|
release_file="meilisearch-$os-$archi.exe"
|
||||||
BINARY_NAME='meilisearch.exe'
|
binary_name='meilisearch.exe'
|
||||||
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
release_file="meilisearch-$os-$archi"
|
release_file="meilisearch-$os-$archi"
|
||||||
BINARY_NAME='meilisearch'
|
binary_name='meilisearch'
|
||||||
|
|
||||||
esac
|
esac
|
||||||
link="https://github.com/meilisearch/MeiliSearch/releases/download/$latest/$release_file"
|
link="https://github.com/meilisearch/MeiliSearch/releases/download/$latest/$release_file"
|
||||||
curl -OL "$link"
|
curl -OL "$link"
|
||||||
mv "$release_file" "$BINARY_NAME"
|
mv "$release_file" "$binary_name"
|
||||||
chmod 744 "$BINARY_NAME"
|
chmod 744 "$binary_name"
|
||||||
success_usage
|
success_usage
|
||||||
|
Loading…
Reference in New Issue
Block a user