Fix reshim to create shim only for executable files and not directories.

This commit is contained in:
Diego Nogueira Teixeira 2018-09-18 10:38:22 -03:00
parent 6ee3e4043c
commit 28c0576d17

View File

@ -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