- if checkstatus cuefile ; then :; else
- $MKCUE $MKCUEOPTS > $ABCDETEMPDIR/cue-$(echo $TRACKINFO | cut -f1 -d' ').txt
- echo cuefile >> "$ABCDETEMPDIR/status"
+ if checkstatus cuefile >/dev/null ; then :; else
+ CUEFILE=cue-$(echo $TRACKINFO | cut -f3 -d' ').txt
+ $MKCUE $MKCUEOPTS > $ABCDETEMPDIR/$CUEFILE
+ echo cuefile=$CUEFILE >> "$ABCDETEMPDIR/status"