From: data Date: Wed, 5 Oct 2005 07:57:05 +0000 (+0000) Subject: With debug we dont want to have the CD ejected X-Git-Url: https://git.hcoop.net/clinton/abcde.git/commitdiff_plain/81d2dc2054747b9bc4581fd05d8b0ebee3cbd6af?hp=cb8015449a7e31b1fff05da8a9698ff13389b564 With debug we dont want to have the CD ejected With FORCE != n we want to check if we are cleaning only when CLEAN = y git-svn-id: http://abcde.googlecode.com/svn/trunk@135 a0fa61bc-5347-0410-a1a9-7f54aa4e1825 --- diff --git a/abcde b/abcde index 7925440..42f44db 100755 --- a/abcde +++ b/abcde @@ -2531,7 +2531,7 @@ while getopts 1a:bc:C:d:Defhj:klLmMnNo:pPr:Rs:S:t:T:vVxw:W:z opt ; do exit 1 fi ;; - z) CDROMREADERSYNTAX=debug ;; + z) CDROMREADERSYNTAX=debug ; EJECTCD="n" ;; ?) usage; exit ;; esac done @@ -3346,12 +3346,13 @@ if [ "$KEEPWAVS" = "y" ];then DOCLEAN=n fi # Check if we have moved all the formats we had previously encoded, if we are not using the FORCE. -if [ ! "$FORCE" = "y" ]; then +if [ "$DOCLEAN" = "y" ] && [ ! "$FORCE" = "y" ]; then ENCODED_FORMATS=$(egrep "^encodetrack-(.{3,6})-(.{1,2})$" "$ABCDETEMPDIR/status" | cut -d"-" -f2 | sort -u | tr '\n' '|') - MOVED_FORMATS=$(egrep "^movetrack-output-(.{3,6})$" "$ABCDETEMPDIR/status" | cut -d"-" -f2 | sort -u | tr '\n' '|') + MOVED_FORMATS=$(egrep "^movetrack-output-(.{3,6})$" "$ABCDETEMPDIR/status" | cut -d"-" -f3 | sort -u | tr '\n' '|') if [ "$ENCODED_FORMATS" != "$MOVED_FORMATS" ]; then echo "Not all encoded formats have been requested to be moved." echo "Use \"-a clean -f -C $DISCID\" to force the removal of the remaining data." + DOCLEAN=n fi fi if [ "$DOCLEAN" = "y" ]; then