Skip to content

Commit

Permalink
fix: use syntax compatible with bash 3 (#19)
Browse files Browse the repository at this point in the history
and fix the root cause in ci checkout
  • Loading branch information
aabouzaid authored Sep 4, 2023
1 parent 66fc15f commit 85fbefd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ jobs:
with:
command: asdf-plugin-manager version
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Install asdf-plugin-manager
- name: Test asdf-plugin-manager plugin
run: |
asdf plugin add asdf-plugin-manager .
asdf install asdf-plugin-manager latest
asdf plugin list --urls --refs
asdf global asdf-plugin-manager latest
- name: Test asdf-plugin-manager
asdf plugin remove asdf-plugin-manager
- name: Test asdf-plugin-manager cli
run: |
cp -a cli/asdf-plugin-manager.sh /usr/local/bin/asdf-plugin-manager
cd test
asdf-plugin-manager list
asdf-plugin-manager add-all
Expand Down
2 changes: 1 addition & 1 deletion cli/asdf-plugin-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ add_plugins() {
echo "${managed_plugins}" | while read managed_plugin; do
read -r plugin_name plugin_url plugin_ref < <(echo ${managed_plugin})
echo "[INFO] Adding: ${plugin_name} ${plugin_url} ${plugin_ref}"
if [[ "${ADD_CLEAN,,}" == 'true' ]]; then
if [[ "$(echo ${ADD_CLEAN} | tr '[:upper:]' '[:lower:]')" == 'true' ]]; then
remove_plugins "$(list_plugins ${plugin_name})"
fi
asdf plugin add "${plugin_name}" "${plugin_url}"
Expand Down

0 comments on commit 85fbefd

Please sign in to comment.