Some updates

This commit is contained in:
2019-04-26 14:56:39 +02:00
parent b83dde6fcb
commit 1eebf73e75
3 changed files with 12 additions and 6 deletions

View File

@@ -6,11 +6,11 @@ if [ -f $1 ]; then
return 1
fi
BACKUP_PATH=~/.vim/backups/`echo $PWD/$1 | tr '/' '%'`
backup_path=~/.config/nvim/backups/`echo $PWD/$1 | tr '/' '%'`
if [ ! -f "$BACKUP_PATH" ]; then
if [ ! -f "$backup_path" ]; then
echo >&2 Backup not found...
return 2
fi
cp $BACKUP_PATH $1
cp $backup_path $1