Reubicados los archivos en carpetas

This commit is contained in:
2023-10-28 13:24:05 +02:00
parent e8efb7c4d0
commit 7c7bca5667
45 changed files with 93 additions and 80 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
###uncomment below if required software not on system
#sudo apt-get install -y mame-tools p7zip-full
readonly cue="$1"
readonly destdir="$2"
# procesa el fitxer
readonly gameName="$(basename "$cue" .cue)"
if [ -f "${destdir}/${gameName}.chd" ]; then
echo -e "\e[1m\e[41m${gameName}.chd already exists\033[0m"
else
echo -e "\e[1m\e[41mProcessing ${gameName}...\033[0m"
chdman createcd -i "${cue}" -o "${destdir}/${gameName}.chd"
fi
echo "!!!!!!!!!!${gameName} complete..."