Skip to content

Commit cb2947d

Browse files
committed
runcommand: remove spurious space from libretro_directory
Fix the extra spaces added in the value of `libretro_directory`,caused by the `grep` pattern in 553c4fe. The extra space at the beginning crashes RetroArch when trying to initiate a netplay connection (as a client), see #3161 (comment).
1 parent 553c4fe commit cb2947d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/supplementary/runcommand/runcommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ function retroarch_append_config() {
11031103
fi
11041104
11051105
# set `libretro_directory` to the core parent folder
1106-
local core_dir=$(echo "$COMMAND" | grep -Eo " $ROOTDIR/libretrocores/.*libretro\.so " | head -n 1)
1106+
local core_dir=$(echo "$COMMAND" | grep -Eo "$ROOTDIR/libretrocores/.*libretro\.so" | head -n 1)
11071107
core_dir=$(dirname "$core_dir")
11081108
[[ -n "$core_dir" ]] && iniSet "libretro_directory" "$core_dir"
11091109

0 commit comments

Comments
 (0)