Lutris sometimes mangles the yml; accommodate

Sometimes the line gets split across two lines? Shorten our search
This commit is contained in:
the-sane 2023-01-30 16:16:53 -05:00
parent e6d79125a6
commit a70d2426ad

View File

@ -1150,7 +1150,7 @@ post_download() {
# Build an array of all Lutris Star Citizen yml files
while IFS='' read -r line; do
lutris_game_ymls+=("$line")
done < <(grep -Rl --include="*.yml" "Roberts Space Industries/RSI Launcher/RSI Launcher.exe" "$lutris_native_conf_dir" "$lutris_flatpak_conf_dir" 2>/dev/null)
done < <(grep -Rl --include="*.yml" "Roberts Space Industries" "$lutris_native_conf_dir" "$lutris_flatpak_conf_dir" 2>/dev/null)
# We handle installs and deletions differently
if [ "$download_action_success" = "installed" ]; then