local SOURCE_WORKDIR="${ABCDETEMPDIR}/data-musicbrainz"
mkdir -p "${SOURCE_WORKDIR}"
${MUSICBRAINZ} --command data --discid "${MBDISCID}" --workdir "${SOURCE_WORKDIR}" --start ${NUM_CDDB_MATCHES}
- # To have got this far, must have been able to run
- # $MUSICBRAINZ earlier to calculate the ID. Errors here are
- # non-fatal, maybe a lookup failure? Log and continue.
error=$?
if [ $error != 0 ]; then
- log error "$MUSICBRAINZ failed to run"
+ log error "$MUSICBRAINZ failed to run; ABORT"
+ exit $error
fi
# Check for no matches.
OSFLAVOUR=FBSD
elif [ X$(uname) = "XDarwin" ] ; then
HTTPGET=curl
-# By default md5sum is not installed, use md5 instead:
+ # By default md5sum is not installed, use md5 instead:
MD5SUM=md5
OSFLAVOUR=OSX
# We should have diskutil in OSX, but let's be sure...
HTTPGET=ftp
MD5SUM=md5
OSFLAVOUR=NBSD
-elif [ X$(uname) = "SunOS" ] ; then
+elif [ X$(uname) = X"SunOS" ] ; then
HTTPGET=""
MD5SUM=md5
OSFLAVOUR=SunOS