fix: extraction of functions_dir for symlink (#103)
This commit is contained in:
+1
-1
@@ -471,7 +471,7 @@ link-code-interpreter() {
|
||||
|
||||
# @cmd Install this repo to aichat functions_dir
|
||||
install() {
|
||||
functions_dir="$(aichat --info | grep -w functions_dir | awk '{print $2}')"
|
||||
functions_dir="$(aichat --info | grep -w functions_dir | awk '{$1=""; print substr($0,2)}')"
|
||||
if [[ -z "$functions_dir" ]]; then
|
||||
_die "error: your aichat version don't support function calling"
|
||||
fi
|
||||
|
||||
@@ -81,7 +81,7 @@ argc build
|
||||
Symlink this repo directory to AIChat's **functions_dir**:
|
||||
|
||||
```sh
|
||||
ln -s "$(pwd)" "$(aichat --info | grep -w functions_dir | awk '{print $2}')"
|
||||
ln -s "$(pwd)" "$(aichat --info | grep -w functions_dir | awk '{$1=""; print substr($0,2)}')"
|
||||
# OR
|
||||
argc install
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user