From 15bda3d78810798084d6cb9e9542c25ff5ca82f0 Mon Sep 17 00:00:00 2001 From: chxuan <787280310@qq.com> Date: Sat, 26 Oct 2019 13:33:41 +0800 Subject: [PATCH] update install.sh --- install.sh | 6 +++--- install_to_user.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 015775c..dd4993f 100755 --- a/install.sh +++ b/install.sh @@ -73,7 +73,7 @@ function backup_vimrc_file() if [ $is_exist == 1 ]; then time=$(get_datetime) backup_vimrc=$old_vimrc"_bak_"$time - read -p "Find "$old_vimrc" already exists,backup "$old_vimrc" to "$backup_vimrc"[Y/N]:" ch + read -p "Find "$old_vimrc" already exists,backup "$old_vimrc" to "$backup_vimrc"? [Y/N] " ch if [ $ch == "Y" ] || [ $ch == "y" ]; then cp $old_vimrc $backup_vimrc fi @@ -88,7 +88,7 @@ function backup_vim_dir() if [ $is_exist == 1 ]; then time=$(get_datetime) backup_vim=$old_vim"_bak_"$time - read -p "Find "$old_vim" already exists,backup "$old_vim" to "$backup_vim"[Y/N]:" ch + read -p "Find "$old_vim" already exists,backup "$old_vim" to "$backup_vim"? [Y/N] " ch if [ $ch == "Y" ] || [ $ch == "y" ]; then cp -R $old_vim $backup_vim fi @@ -360,7 +360,7 @@ function install_ycm() cd ~/.vim/plugged/YouCompleteMe - read -p "Please choose to compile ycm with python2 or python3, if there is a problem with the current selection, please choose another one[2/3]:" version + read -p "Please choose to compile ycm with python2 or python3, if there is a problem with the current selection, please choose another one. [2/3] " version if [ $version == "2" ]; then echo "Compile ycm with python2." python2.7 ./install.py --clang-completer diff --git a/install_to_user.sh b/install_to_user.sh index 75ce1ca..c915717 100755 --- a/install_to_user.sh +++ b/install_to_user.sh @@ -81,7 +81,7 @@ function backup_vimrc_file() if [ $is_exist == 1 ]; then time=$(get_datetime) backup_vimrc=$old_vimrc"_bak_"$time - read -p "Find "$old_vimrc" already exists,backup "$old_vimrc" to "$backup_vimrc"[Y/N]:" ch + read -p "Find "$old_vimrc" already exists,backup "$old_vimrc" to "$backup_vimrc"? [Y/N] " ch if [ $ch == "Y" ] || [ $ch == "y" ]; then cp $old_vimrc $backup_vimrc chown $user":"$user $backup_vimrc @@ -99,7 +99,7 @@ function backup_vim_dir() if [ $is_exist == 1 ]; then time=$(get_datetime) backup_vim=$old_vim"_bak_"$time - read -p "Find "$old_vim" already exists,backup "$old_vim" to "$backup_vim"[Y/N]:" ch + read -p "Find "$old_vim" already exists,backup "$old_vim" to "$backup_vim"? [Y/N] " ch if [ $ch == "Y" ] || [ $ch == "y" ]; then cp -R $old_vim $backup_vim chown -R $user":"$user $backup_vim