Skip to content

Commit

Permalink
prevent overwrites of previous backups, issue #76
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherNeko authored and ChristophHaag committed Jun 18, 2022
1 parent 0e2f0b8 commit 55e2668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion register.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 55e2668

Please sign in to comment.