From 4738b1260c03242987b183c5e4883722cf8a93b0 Mon Sep 17 00:00:00 2001 From: Renato Silva Date: Tue, 2 Dec 2014 21:45:25 -0200 Subject: [PATCH] Fix search path in Bash front end. The directory of the script is the one that should be added to search path, not the current directory. --- easyoptions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/easyoptions b/easyoptions index 3efe13a..7c4e0d5 100644 --- a/easyoptions +++ b/easyoptions @@ -1,7 +1,7 @@ #!/bin/bash ## -## EasyOptions Bash Front End 2014.12.1 +## EasyOptions Bash Front End 2014.12.2 ## Copyright (c) 2014 Renato Silva ## GNU GPLv2 licensed ## @@ -23,4 +23,5 @@ ## easyoptions.rb --help ## -eval "$(PATH="$PATH:/usr/lib/ruby/vendor_ruby:." from="$0" easyoptions.rb "$@" || echo exit 1)" +script_dir=$(dirname "$BASH_SOURCE") +eval "$(PATH="$PATH:/usr/lib/ruby/vendor_ruby:${script_dir}" from="$0" easyoptions.rb "$@" || echo exit 1)"