Now you’ve learned a lesson about running commands you don’t fully understand in the terminal, hopefully this should inspire you and others alike to learn the proper procedures that should be taken in these situations. This one in particular is especially bad as there are instructions on the wiki detailing this exact problem and it describes non-destructive methods to update.
Anyway, since it’s unknown exactly what you did the best advice would be to reflash Batocera and start on over. It should be safe to transfer your userdata to another drive to transfer it back later if you want.