bug: Invalid path in asdf/lib/commands/command-plugin-add.bash
when running asdf plugin add
#1791
Labels
asdf/lib/commands/command-plugin-add.bash
when running asdf plugin add
#1791
Describe the Bug
I'm following #577 recommendations to install
asdf
system wide. After cloning the repository to/opt/asdf
, ensuring permissions are right, adding path information in my.bashrc
, I'm unable to add a plugin:I'm believe "/lib" shouldn't be present twice in the path.
Apologies if it's my own fault as my Linux knowledge is limited. I exhaustively share my process in the "Steps to reproduce" section
Steps to Reproduce
unset
environment variables which may conflict with the incoming installation[ -z $(printenv | grep ASDF) ]] && echo 'OK'
asdf
to/opt/asdf
by runningsudo git clone https://github.com/asdf-vm/asdf.git /opt/asdf --branch v0.14.1
asdf
group and add the asdf manager to itgroupadd asdf && usermod -aG asdf <user>
groups
confirms that my users belongs to theasdf
groupsudo chown -R root:asdf /opt/asdf/
sudo chmod -R 750 /opt/asdf/
ASDF_DATA_DIR
and sourceasdf.sh
in the regular user.bashrc
:echo -e "\nexport ASDF_DATA_DIR=/opt/asdf\n. \"/opt/asdf/asdf.sh\"\n. \"/opt/asdf/completions/asdf.bash\"" >> ~/.bashrc
source ~/.bashrc
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
Expected Behaviour
I expect no output and a 0 exit code
Actual Behaviour
127 exit code with the following output:
Environment
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered: