diff --git a/mkvdts2ac3.sh b/mkvdts2ac3.sh index 41ad659..3cdf83d 100755 --- a/mkvdts2ac3.sh +++ b/mkvdts2ac3.sh @@ -401,11 +401,11 @@ doprint $"WORKING DIRECTORY: $WD" if [ -z $DTSTRACK ]; then doprint "" doprint $"Find first DTS track in MKV file." - doprint "> mkvmerge -i \"$MKVFILE\" | grep -m 1 \"${AUDIOTRACKPREFIX}DTS)\" | cut -d ":" -f 1 | cut -d \" \" -f 3" + doprint "> mkvmerge -i \"$MKVFILE\" | grep -m 1 \"${AUDIOTRACKPREFIX}DTS\" | cut -d ":" -f 1 | cut -d \" \" -f 3" DTSTRACK="DTSTRACK" #Value for debugging dopause if [ $EXECUTE = 1 ]; then - DTSTRACK=$(mkvmerge -i "$MKVFILE" | grep -m 1 "${AUDIOTRACKPREFIX}DTS)" | cut -d ":" -f 1 | cut -d " " -f 3) + DTSTRACK=$(mkvmerge -i "$MKVFILE" | grep -m 1 "${AUDIOTRACKPREFIX}DTS" | cut -d ":" -f 1 | cut -d " " -f 3) # Check to make sure there is a DTS track in the MVK if [ -z $DTSTRACK ]; then @@ -418,11 +418,11 @@ else # Checks to make sure the command line argument track id is valid doprint "" doprint $"Checking to see if DTS track specified via arguments is valid." - doprint "> mkvmerge -i \"$MKVFILE\" | grep \"Track ID $DTSTRACK: ${AUDIOTRACKPREFIX}DTS)\"" + doprint "> mkvmerge -i \"$MKVFILE\" | grep \"Track ID $DTSTRACK: ${AUDIOTRACKPREFIX}DTS\"" VALID=$"VALID" #Value for debugging dopause if [ $EXECUTE = 1 ]; then - VALID=$(mkvmerge -i "$MKVFILE" | grep "Track ID $DTSTRACK: ${AUDIOTRACKPREFIX}DTS)") + VALID=$(mkvmerge -i "$MKVFILE" | grep "Track ID $DTSTRACK: ${AUDIOTRACKPREFIX}DTS") if [ -z "$VALID" ]; then error $"Track ID '$DTSTRACK' is not a DTS track and/or does not exist."