Should not --disable-gems
when curses gem is used (#14)
This commit is contained in:
parent
98ccc03a21
commit
bff7e9edf5
5
install
5
install
@ -33,7 +33,12 @@ echo -n "Checking Ruby version ... "
|
||||
/usr/bin/env ruby -e 'exit RUBY_VERSION >= "1.9"'
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ">= 1.9"
|
||||
/usr/bin/env ruby --disable-gems -e "begin; require 'curses'; rescue Exception; exit 1; end"
|
||||
if [ $? -eq 0 ]; then
|
||||
fzf_cmd="$ruby --disable-gems $fzf_base/fzf"
|
||||
else
|
||||
fzf_cmd="$ruby $fzf_base/fzf"
|
||||
fi
|
||||
else
|
||||
echo "< 1.9"
|
||||
fzf_cmd="$ruby $fzf_base/fzf"
|
||||
|
Loading…
Reference in New Issue
Block a user