From dae340d0368478e449fc091d03277086ca5dbc2e Mon Sep 17 00:00:00 2001 From: PapaMalo83 <161542652+PapaMalo83@users.noreply.github.com> Date: Sat, 28 Feb 2026 14:19:25 -0500 Subject: [PATCH] Update Igir-Collection-Manager.md Fix for creating folders and m3u for multi disc roms --- docs/Tools/Igir-Collection-Manager.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/Tools/Igir-Collection-Manager.md b/docs/Tools/Igir-Collection-Manager.md index 58ac15aa..3af40c25 100644 --- a/docs/Tools/Igir-Collection-Manager.md +++ b/docs/Tools/Igir-Collection-Manager.md @@ -98,11 +98,13 @@ The Igir script will move games that have multiple discs to separate folders. Th To do this enter your platform directory, such as `ps` or `psx` and run the following: ```bash -ls -d *Disc* | while read dir; do - game=$(echo "${dir}" | sed -r 's/ \(Disc [0-9]+\)//') - mkdir -p "${game}" - mv "${dir}"/* "${game}/" - rm -rf "${dir}" +ls -d Disc | while read file; do + game=$(echo "${file}" | sed -E 's/ ?(Disc.*//') + mkdir -p "${game}" + mv "${file}" "${game}" + m3u="${game}/${game}.m3u" + touch "${m3u}" + echo "${file}" >> "${m3u}" done ```