Skip to content

Commit

Permalink
refactor for supporting macos bash 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Jun 6, 2024
1 parent 7484868 commit 82e67b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Bash 5 on macOS
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install bash
bash --version
- uses: sigoden/install-binary@v1
with:
repo: sigoden/argc
Expand Down
2 changes: 1 addition & 1 deletion scripts/bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
func_data="$1"
fi
if [[ "$func_name" == *.sh ]]; then
func_name="${func_name::-3}"
func_name="${func_name:0:$((${#func_name}-3))}"
fi

export LLM_FUNCTION_NAME="$func_name"
Expand Down

0 comments on commit 82e67b2

Please sign in to comment.