fix: install failed since wrong aichat version (#5)
This commit is contained in:
@@ -62,6 +62,9 @@ build-win-shims() {
|
|||||||
# @cmd Install this repo to aichat functions_dir
|
# @cmd Install this repo to aichat functions_dir
|
||||||
install() {
|
install() {
|
||||||
functions_dir="$(aichat --info | grep functions_dir | awk '{print $2}')"
|
functions_dir="$(aichat --info | grep functions_dir | awk '{print $2}')"
|
||||||
|
if [[ -z "$functions_dir" ]]; then
|
||||||
|
_die "error: your aichat version don't support function calling"
|
||||||
|
fi
|
||||||
if [[ ! -e "$functions_dir" ]]; then
|
if [[ ! -e "$functions_dir" ]]; then
|
||||||
ln -s "$(pwd)" "$functions_dir"
|
ln -s "$(pwd)" "$functions_dir"
|
||||||
echo "$functions_dir symlinked"
|
echo "$functions_dir symlinked"
|
||||||
|
|||||||
Reference in New Issue
Block a user