瀏覽代碼

Fix backup error on install script when backups already exist

fix/install-backup-error
Jérôme Deuchnord 5 年之前
父節點
當前提交
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


Loading…
取消
儲存