mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -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
|
# because just $executable_file gives absolute path; We don't want version hardcoded in shim
|
||||||
local executable_path_relative_to_install_path
|
local executable_path_relative_to_install_path
|
||||||
executable_path_relative_to_install_path="$bin_path"/$(basename "$executable_file")
|
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"
|
write_shim_script "$plugin_name" "$version" "$executable_path_relative_to_install_path"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user