Skip to content

Commit d24b456

Browse files
committed
retroarch: Fix ES configscript not using fixed strings in grep commands that are searching for the device name
The impact of this is that any device name that's reported with special characters from grep's default regular expression engine would fail. For example, "*" would be misinterpreted. This change makes the script more aligned with other grep commands in the file.
1 parent 0442962 commit d24b456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • scriptmodules/supplementary/emulationstation/configscripts

scriptmodules/supplementary/emulationstation/configscripts/retroarch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function map_retroarch_joystick() {
241241
declare -A hat_map=([1]="up" [2]="right" [4]="down" [8]="left")
242242
iniGet "input_driver"
243243
local input_driver="$ini_value"
244-
local autoconfig_preset=$(grep -rwl "$rootdir/emulators/retroarch/autoconfig-presets/$input_driver" -e "$DEVICE_NAME" | head -1)
244+
local autoconfig_preset=$(grep -rwFl "$rootdir/emulators/retroarch/autoconfig-presets/$input_driver" -e "$DEVICE_NAME" | head -1)
245245
for key in "${keys[@]}"; do
246246
case "$input_type" in
247247
hat)

0 commit comments

Comments
 (0)