summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cb80154)
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
- z) CDROMREADERSYNTAX=debug ;;
+ z) CDROMREADERSYNTAX=debug ; EJECTCD="n" ;;
?) usage; exit ;;
esac
done
?) usage; exit ;;
esac
done
DOCLEAN=n
fi
# Check if we have moved all the formats we had previously encoded, if we are not using the FORCE.
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' '|')
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."
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."
fi
fi
if [ "$DOCLEAN" = "y" ]; then
fi
fi
if [ "$DOCLEAN" = "y" ]; then