- Dec 17, 2017
- 7,426
- 9,695
OK, I think I get it. Your bash is really zsh, right? With auto quote turned on.... They should have played with OSX more when they implemented that feature on Linux - OSX will escape spaces in paths, so you don't have to enclose the path in quotes. Enclosing the path in quotes means you can't simply use it in variables; you have to remove the quotes. Brilliant.Sorry, I was wrong. Unbat.commend doesn't shuts down as soon as I drag and drop the game's folder. It closes after I hit enter. Here an example: I drag and drop Being a DIK's game folder into unren.commend. As soon as I hit enter or another key the window shuts down.
View attachment 584407
Try adding these lines right before the "game=$appdir/"... line:
Code:
temp="${appdir%\'}"
appdir="${temp#\'}"