Quellcode durchsuchen

fix: linux launcher breaks when there are spaces in the directory path (#4795)

* fix: linux launcher breaks when there are spaces in the directory path

* Add quotes around $0 as well

---------

Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
Horizon vor 3 Jahren
Ursprung
Commit
1f5e1ffa80
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      distribution/linux/Ryujinx.sh

+ 1 - 1
distribution/linux/Ryujinx.sh

@@ -1,6 +1,6 @@
 #!/bin/sh
 
-SCRIPT_DIR=$(dirname $(realpath $0))
+SCRIPT_DIR=$(dirname "$(realpath "$0")")
 RYUJINX_BIN="Ryujinx"
 
 if [ -f "$SCRIPT_DIR/Ryujinx.Ava" ]; then