From 6509c7cbf0f7be7a3803681dfc45bb78b1409fcd Mon Sep 17 00:00:00 2001 From: Wenwen Zhang Date: Sat, 1 Jun 2024 22:45:20 +0800 Subject: [PATCH] update --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2a69855..d19ca6d 100644 --- a/install.sh +++ b/install.sh @@ -15,13 +15,13 @@ echo "Backup .vimrc/.vim to .vimrc/.vim_Back_$TIMESTAMP" -if [ -e "$CONFIG_FILE" ]; then +if [ -f "$CONFIG_FILE" ]; then mv "$CONFIG_FILE" "$CONFIG_FILE"_BACKUP_"$TIMESTAMP" else echo "$CONFIG_FILE" " is not existing..." fi -if [ -f "$VIM_CONFIG_DIR" ]; then +if [ -d "$VIM_CONFIG_DIR" ]; then mv "$VIM_CONFIG_DIR" "$VIM_CONFIG_DIR"_BACKUP_"$TIMESTAMP" else echo "$VIM_CONFIG_DIR" " is not existing"