浏览代码

Fix backup error on install script when backups already exist

fix/install-backup-error
父节点
当前提交
84df16e095
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      scripts/install

+ 3
- 0
scripts/install 查看文件

@@ -1,14 +1,17 @@
#!/bin/bash

if [ -f "$HOME/.vimrc" ]; then
rm -rf $HOME/vimrc.old 2>&1
mv $HOME/.vimrc $HOME/vimrc.old
echo "There was already a .vimrc file, renamed to vimrc.old"
fi
if [ -d "$HOME/.vim" ]; then
rm -rf $HOME/vim.old 2>&1
mv $HOME/.vim $HOME/vim.old
echo "There was already a .vim folder, renamed to vim.old"
fi
if [ -f "$HOME/.gvimrc" ]; then
rm -rf $HOME/gvimrc.old 2>&1
mv $HOME/.gvimrc $HOME/gvimrc.old
echo "There was already a .gvimrc file, renamed to gvimrc.old"
fi


正在加载...
取消
保存