This commit is contained in:
Wenwen Zhang 2024-06-01 22:45:20 +08:00
parent aa9c5099d3
commit 6509c7cbf0

View File

@ -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"