Skip to content

Commit

Permalink
runcommand: remove spurious space from libretro_directory
Browse files Browse the repository at this point in the history
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 RetroPie#3161 (comment).
  • Loading branch information
cmitu authored and GeorgeMcMullen committed Sep 7, 2022
1 parent f55f0af commit ac79fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scriptmodules/supplementary/runcommand/runcommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ function retroarch_append_config() {
fi
# set `libretro_directory` to the core parent folder
local core_dir=$(echo "$COMMAND" | grep -Eo " $ROOTDIR/libretrocores/.*libretro\.so " | head -n 1)
local core_dir=$(echo "$COMMAND" | grep -Eo "$ROOTDIR/libretrocores/.*libretro\.so" | head -n 1)
core_dir=$(dirname "$core_dir")
[[ -n "$core_dir" ]] && iniSet "libretro_directory" "$core_dir"
Expand Down

0 comments on commit ac79fff

Please sign in to comment.