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.
This commit is contained in:
parent
74223b62d7
commit
4738b1260c
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue