diff --git a/transcode.sh b/transcode.sh index 82d8131..d0b3f3d 100644 --- a/transcode.sh +++ b/transcode.sh @@ -246,6 +246,12 @@ do fi #REMOVE THE TEMP FILE (if necessary) + if ls "$workDIR"/"$fileNAME" + then + rm "$workDIR"/"$fileNAME" + else + echo "Workdir already cleaned" + fi if ls "$tmpDIR"/"$fileNAME" then rm "$tmpDIR"/"$fileNAME"