From 55e266814b2da82bc33774dc781b6b59709766a3 Mon Sep 17 00:00:00 2001 From: AnotherNeko Date: Sat, 18 Jun 2022 13:57:21 -0700 Subject: [PATCH] prevent overwrites of previous backups, issue #76 --- register.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.sh b/register.sh index 8acb71f..38e2ab1 100755 --- a/register.sh +++ b/register.sh @@ -35,7 +35,7 @@ fi if [ -f "$CURRENTCONFIG" ]; then echo "Found config in $CURRENTCONFIG" echo "Backing up current config to $BACKUPDIR..." - mv "$CURRENTCONFIG" "$BACKUPDIR" + mv --backup=t "$CURRENTCONFIG" "$BACKUPDIR" echo "Backed up config!" fi