mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Fix reshim to create shim only for executable files and not directories.
This commit is contained in:
parent
6ee3e4043c
commit
28c0576d17
@ -143,7 +143,7 @@ generate_shims_for_version() {
|
||||
# because just $executable_file gives absolute path; We don't want version hardcoded in shim
|
||||
local executable_path_relative_to_install_path
|
||||
executable_path_relative_to_install_path="$bin_path"/$(basename "$executable_file")
|
||||
if [ -x "$executable_file" ]; then
|
||||
if [[ (-f "$executable_file") && (-x "$executable_file") ]]; then
|
||||
write_shim_script "$plugin_name" "$version" "$executable_path_relative_to_install_path"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user