mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 10:58:59 +00:00
allow installation with sudo privileges
This commit is contained in:
parent
84fc73ad9c
commit
7261d3afcd
6
install
6
install
@ -28,7 +28,11 @@ if [ $? -eq 0 ]; then
|
||||
else
|
||||
echo "Not found"
|
||||
echo "Installing 'curses' gem ... "
|
||||
/usr/bin/env gem install curses -v 1.0.0 --user-install
|
||||
if (( EUID )); then
|
||||
/usr/bin/env gem install curses -v 1.0.0 --user-install
|
||||
else
|
||||
/usr/bin/env gem install curses -v 1.0.0
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
echo
|
||||
echo "Failed to install 'curses' gem."
|
||||
|
Loading…
Reference in New Issue
Block a user