Skip to content

Commit

Permalink
Fixes bug where plugin path is incorrect (#249) (#251)
Browse files Browse the repository at this point in the history
* fix: 🐛 bug where plugin path is incorrect (#249)
* fix: supports spaces in the path

Co-authored-by: Augusto Moura <me@augustomoura.com>
  • Loading branch information
gwealm and augustobmoura authored Jul 22, 2021
1 parent e2d0822 commit 95a2091
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi

ASDF_NODEJS_KEYRING=asdf-nodejs.gpg

ASDF_NODEJS_PLUGIN_NAME="$(basename "$(dirname "$(dirname "${BASH_SOURCE[0]}")")")"
ASDF_NODEJS_PLUGIN_NAME="$(basename "$(dirname "$(dirname "$0")")")"
# TODO: Replace with an asdf variable once asdf starts providing the plugin name
# as a variable
plugin_name() {
Expand Down Expand Up @@ -85,4 +85,3 @@ print_index_tab(){

rm "$temp_headers_file"
}

0 comments on commit 95a2091

Please sign in to comment.