Skip to content

Commit

Permalink
SRB2: fix config file detection
Browse files Browse the repository at this point in the history
I can't believe https://unix.stackexchange.com/q/248544 lied to me.
  • Loading branch information
cobalt2727 authored Jan 21, 2024
1 parent e36a1fe commit 330eea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/games_and_emulators/SRB2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sudo mv SRB2Icon.png /usr/local/SRB2/SRB2Icon.png || error "The game installed,
#why would I bother testing if I formatted spaces correctly when I can just wildcard
sudo mv *.desktop /usr/share/applications/ || error "The game installed, but we couldn't properly set up one or more desktop files!"
#don't break the user's configs if they already have one in there
mv -vn config.cfg ~/.srb2/config.cfg || error "The game installed, but we couldn't properly set up one or more desktop files!"
test -f ~/.srb2/config.cfg || mv config.cfg ~/.srb2/config.cfg || error "The game installed, but we couldn't properly set up one or more desktop files!"

#hardly anyone will use this but I'm putting it in anyway. it's neat.
xdg-open /usr/local/SRB2/ || echo ""
Expand Down

0 comments on commit 330eea4

Please sign in to comment.