From 00edadd6d33330993f8a1b61d41962eea17e5645 Mon Sep 17 00:00:00 2001 From: Akash Manohar J Date: Sun, 17 May 2015 19:08:05 +0530 Subject: [PATCH] Fix shim generator --- lib/commands/reshim.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commands/reshim.sh b/lib/commands/reshim.sh index e5cbc5fa..8a31ff54 100644 --- a/lib/commands/reshim.sh +++ b/lib/commands/reshim.sh @@ -92,7 +92,9 @@ generate_shims_for_version() { for bin_path in "${all_bin_paths[@]}"; do #TODO check if it's actually an executable file for executable_file in $install_path/$bin_path/*; do - write_shim_script $package_name $version $executable_file + # because just $executable_file gives absolute path; We don't want version hardcoded in shim + local executable_path_relative_to_install_path=$bin_path/$(basename $executable_file) + write_shim_script $package_name $version $executable_path_relative_to_install_path done done }