mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Fix sourced usage
This commit is contained in:
parent
7f14e06fd7
commit
e80ec0cfbf
9
asdf.sh
9
asdf.sh
@ -1,4 +1,7 @@
|
|||||||
#/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
asdf_dir=$(cd $(dirname $0); echo $(pwd))
|
#TODO check for ${BASH_SOURCE[0]} or use $0
|
||||||
export PATH="$(asdf_dir)/bin:$(asdf_dir)/shims:$PATH"
|
|
||||||
|
current_script_path=${BASH_SOURCE[0]}
|
||||||
|
asdf_dir=$(cd $(dirname $current_script_path); echo $(pwd))
|
||||||
|
export PATH="${asdf_dir}/bin:${asdf_dir}/shims:$PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user