Install curses gem in user's home directory

This commit is contained in:
Junegunn Choi 2014-03-13 11:01:35 +09:00
parent ae84d8c7a4
commit 8a3e8c2d81

View File

@ -29,10 +29,13 @@ if [ $? -eq 0 ]; then
else else
echo "Not found" echo "Not found"
echo "Installing 'curses' gem ... " echo "Installing 'curses' gem ... "
/usr/bin/env gem install curses -v 1.0.0 /usr/bin/env gem install curses -v 1.0.0 --user-install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo
echo "Failed to install 'curses' gem." echo "Failed to install 'curses' gem."
echo "Try installing it as root: sudo gem install curses" if [[ $(uname -r) =~ 'ARCH' ]]; then
echo "Make sure that base-devel package group is installed."
fi
exit 1 exit 1
fi fi
fi fi