From 1ebcff0eea320de6edc8f0f9244d70283c4228be Mon Sep 17 00:00:00 2001 From: Eric Ostrowski Date: Wed, 10 Apr 2019 23:46:04 -0500 Subject: [PATCH] Fixed regression when using the default save filter to not find saves for games with spaces in their name --- emulator_settings.xml | 5 ++++- rclone_script.sh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/emulator_settings.xml b/emulator_settings.xml index 8ddab78..7d3feb8 100644 --- a/emulator_settings.xml +++ b/emulator_settings.xml @@ -12,7 +12,10 @@ ppsspp /opt/retropie/configs/psp/ - /opt/retropie/configs/psp/PSP/PPSSPP_STATE + /opt/retropie/configs/psp/PSP/PPSSPP_STATE + + state + SYS PNG diff --git a/rclone_script.sh b/rclone_script.sh index c2dd3ce..86cbb46 100644 --- a/rclone_script.sh +++ b/rclone_script.sh @@ -169,6 +169,7 @@ function prepareSaveFilters () localFilter="${romfilebase//\[/\\[}" localFilter="${localFilter//\]/\\]}.*" remoteFilter="${localFilter}" + localFilter=("-iname" "${localFilter}") else @@ -336,7 +337,7 @@ function uploadSaves () return fi - + localfiles=$(find ${saveFilePath} -type f "${localFilter[@]}") if [ "${localfiles}" = "" ]