On OS X after inserting an audio cd if a USB disk was connected
abcde will think the USB disk is the audio CD. Thanks to Richard
for the fix which closes Issue 139.
if [ "$CDROM" = "" ] ; then
if [ -e /dev/cdroms/cdrom0 ]; then
CDROM=/dev/cdroms/cdrom0
- elif [ "$OSFLAVOUR" = "OSX" ] && [[ $(diskutil list) =~ CD_part.*(disk.)$'\n' ]]; then
+ elif [ "$OSFLAVOUR" = "OSX" ] && [[ $(diskutil list) =~ CD_part[^/]*(disk.)$'\n' ]]; then
CDROM=/dev/${BASH_REMATCH[1]}
elif [ -e /dev/cdrom ]; then
CDROM=/dev/cdrom
abcde 2.6.1
+ * Fix for diskutil selecting wrong disk on OS X. Thanks
+ to Richard for this fix which closes Issue 139.
* Added some error checking and documentation for
the abcde-musicbrainz-tool. Thanks yet again to
Matthias Andree for this work! Closes issue 138.