Skip to content

Commit

Permalink
chore: update gaianet.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <sam@secondstate.io>
  • Loading branch information
apepkuss committed Apr 15, 2024
1 parent bf5603c commit 1ce93ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions v2/gaianet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ if [ ! -d "$gaianet_base_dir/log" ]; then
fi
log_dir=$gaianet_base_dir/log

# * init subcommand

# create or recover a qdrant collection
create_collection() {
printf "[+] Creating 'default' collection in the Qdrant instance ...\n\n"
printf "[+] Creating 'default' collection in the Qdrant instance ...\n"

qdrant_pid=0
qdrant_already_running=false
Expand All @@ -26,6 +28,7 @@ create_collection() {
printf " * A Qdrant instance is already running ...\n"
qdrant_already_running=true
fi
printf "\n"
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
printf "For Windows users, please run this script in WSL.\n"
exit 1
Expand Down Expand Up @@ -617,9 +620,8 @@ case $subcommand in

;;
*)
# init
init

show_help
exit 1
;;
esac
;;
Expand Down

0 comments on commit 1ce93ed

Please sign in to comment.