update backup file name

This commit is contained in:
Ray Elliott 2020-09-03 16:30:27 +01:00
parent 25a6f0cf2d
commit 9abd7ab49d
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ -f "$HOME/.profile" ] ; then
mv "$HOME/.profile" "$HOME/.profile-original"
if [ -e "$HOME/.profile" ] ; then
mv "$HOME/.profile" "$HOME/.profile-original-$(date =%s)"
fi
ln -s "$HOME/.config/profile/profile" "$HOME/.profile"