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"