Skip to content

Commit 310dbc6

Browse files
authored
Merge pull request #62 from PapaMalo83/patch-2
Update Igir-Collection-Manager.md
2 parents 619b6c1 + dae340d commit 310dbc6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

docs/Tools/Igir-Collection-Manager.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ The Igir script will move games that have multiple discs to separate folders. Th
9898
To do this enter your platform directory, such as `ps` or `psx` and run the following:
9999
100100
```bash
101-
ls -d *Disc* | while read dir; do
102-
game=$(echo "${dir}" | sed -r 's/ \(Disc [0-9]+\)//')
103-
mkdir -p "${game}"
104-
mv "${dir}"/* "${game}/"
105-
rm -rf "${dir}"
101+
ls -d Disc | while read file; do
102+
game=$(echo "${file}" | sed -E 's/ ?(Disc.*//')
103+
mkdir -p "${game}"
104+
mv "${file}" "${game}"
105+
m3u="${game}/${game}.m3u"
106+
touch "${m3u}"
107+
echo "${file}" >> "${m3u}"
106108
done
107109
```
108110

0 commit comments

Comments
 (0)