mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 15:18:29 +00:00
Should not --disable-gems
when curses gem is used (#14)
This commit is contained in:
parent
98ccc03a21
commit
bff7e9edf5
7
install
7
install
@ -33,7 +33,12 @@ echo -n "Checking Ruby version ... "
|
|||||||
/usr/bin/env ruby -e 'exit RUBY_VERSION >= "1.9"'
|
/usr/bin/env ruby -e 'exit RUBY_VERSION >= "1.9"'
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo ">= 1.9"
|
echo ">= 1.9"
|
||||||
fzf_cmd="$ruby --disable-gems $fzf_base/fzf"
|
/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
|
else
|
||||||
echo "< 1.9"
|
echo "< 1.9"
|
||||||
fzf_cmd="$ruby $fzf_base/fzf"
|
fzf_cmd="$ruby $fzf_base/fzf"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user