modified: convert_to_gdi_then_to_chd.sh

new file:   docker_command.sh
	modified:   get-gdi-conversion.sh
This commit is contained in:
2023-02-20 10:44:44 -06:00
parent 379b4199b8
commit 1ec0b97de1
3 changed files with 8 additions and 7 deletions

View File

@@ -12,7 +12,7 @@
# use with convert_cue_chd.sh */.
# output_directory is the directory where the unarchived folders will go
output_directory=./out
output_directory=../out
mkdir -p "$output_directory"
i=1
for FOLDER in "$@";
@@ -28,14 +28,13 @@ for FOLDER in "$@";
outpath="$output_directory/$outname"
##touch "./out/${fi%%.*}.new"
if [ ! -d "$outpath" ]; then
if [ ! -f "$outpath" ]; then
echo "Input file: $filename"
echo "Output path: $outpath"
echo $'\n'
gdi-conversion-linux -c "$INFILE"
chdman createcd -i "$FOLDER/output/*.gdi" -o "$outpath"
# 7z x "$FILE" -aos -bb1 -o"$outpath"
./gdi-conversion-linux -c "$INFILE"
chdman createcd -i "$FOLDER/output/disc.gdi" -o "$outpath"
rm -r "$FOLDER/output"
else
echo "$outpath exists... skipping"
fi