don't abort on backup replacement

This commit is contained in:
Mark Riedesel 2019-11-30 13:31:45 -06:00
parent 1eaf48ec23
commit c994735e1c

View file

@ -37,9 +37,9 @@ function install() {
# rename files with an ".old" extension # rename files with an ".old" extension
warn "$dst already exists, renaming to $dst.old" warn "$dst already exists, renaming to $dst.old"
backup=$dst.old backup=$dst.old
if [ -e $backup ]; then # if [ -e $backup ]; then
die "$backup already exists. Aborting." # die "$backup already exists. Aborting."
fi # fi
mv -v $dst $backup mv -v $dst $backup
fi fi
fi fi