Bladeren bron

Fix backup error on install script when backups already exist

fix/install-backup-error
Jérôme Deuchnord 5 jaren geleden
bovenliggende
commit
84df16e095
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. +3
    -0
      scripts/install

+ 3
- 0
scripts/install Bestand weergeven

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


Laden…
Annuleren
Opslaan