diff --git a/convert_to_gdi_then_to_chd.sh b/convert_to_gdi_then_to_chd.sh index 41e5132..7c79743 100644 --- a/convert_to_gdi_then_to_chd.sh +++ b/convert_to_gdi_then_to_chd.sh @@ -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 diff --git a/docker_command.sh b/docker_command.sh new file mode 100644 index 0000000..9c3a642 --- /dev/null +++ b/docker_command.sh @@ -0,0 +1 @@ +docker exec -d -w "/volume2/chd-conversion" python sh -c "./convert_to_gdi_then_to_chd.sh ../dc-out/Tony\ Hawk*/ > log.txt" \ No newline at end of file diff --git a/get-gdi-conversion.sh b/get-gdi-conversion.sh index 1f98cac..7b1c0de 100644 --- a/get-gdi-conversion.sh +++ b/get-gdi-conversion.sh @@ -6,4 +6,5 @@ # Usage: $ ./get-gdi-conversion.sh -wget -i https://github.com/sirconan/gdi-conversion/releases/download/1.2.0/gdi-conversion-linux-v1.2.0 -o gdi-conversion-linux \ No newline at end of file +wget https://github.com/sirconan/gdi-conversion/releases/download/1.2.0/gdi-conversion-linux-v1.2.0 -O gdi-conversion-linux +chmod +x gdi-conversion-linux \ No newline at end of file