Improve search path in Bash front end.

* The directory of the script has been added back to search path.
* This directory and the ruby subdirectory now have priority over /usr/lib/ruby/vendor_ruby.
This commit is contained in:
Renato Silva 2014-12-04 09:51:59 -02:00
parent 23c8155290
commit fd776b6cba
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
## ##
## EasyOptions Bash Front End 2014.12.2 ## EasyOptions Bash Front End 2014.12.4
## Copyright (c) 2014 Renato Silva ## Copyright (c) 2014 Renato Silva
## GNU GPLv2 licensed ## GNU GPLv2 licensed
## ##
@ -24,4 +24,4 @@
## ##
script_dir=$(dirname "$BASH_SOURCE") script_dir=$(dirname "$BASH_SOURCE")
eval "$(PATH="$PATH:/usr/lib/ruby/vendor_ruby:${script_dir}/ruby" from="$0" easyoptions.rb "$@" || echo exit 1)" eval "$(PATH="$PATH:${script_dir}:${script_dir}/ruby:/usr/lib/ruby/vendor_ruby" from="$0" easyoptions.rb "$@" || echo exit 1)"