* Fix finding $CDROM on OS X. Thanks to niederstrasser for the patch.
authorSteve McIntyre <steve@einval.com>
Wed, 26 Sep 2012 16:01:48 +0000 (16:01 +0000)
committerSteve McIntyre <steve@einval.com>
Wed, 26 Sep 2012 16:01:48 +0000 (16:01 +0000)
    Closes issue 71.

abcde
changelog

diff --git a/abcde b/abcde
index c011a51..edbc78c 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -3373,6 +3373,8 @@ fi
 if [ "$CDROM" = "" ] ; then
        if [ -e /dev/cdroms/cdrom0 ]; then
                CDROM=/dev/cdroms/cdrom0
+       elif [ "$OSFLAVOUR" = "OSX" ] && [[ $(diskutil list) =~ CD_part.*(disk.)$'\n' ]]; then
+               CDROM=/dev/${BASH_REMATCH[1]}
        elif [ -e /dev/cdrom ]; then
                CDROM=/dev/cdrom
        elif [ -e /dev/sr0 ]; then
@@ -3383,8 +3385,6 @@ if [ "$CDROM" = "" ] ; then
                CDROM=/dev/acd0c
        elif [ -e /dev/disk1 ]; then
                CDROM=/dev/disk1
-       elif [ "$OSFLAVOUR" = "OSX" ] && [[ $(diskutil list) =~ CD_part.*(disk.)$'\n' ]]; then
-               CDROM=/dev/${BASH_REMATCH[1]}
        fi
 fi
 
index c903d1b..4dfd578 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,5 +1,8 @@
 abcde 2.5.5
 
+  * Fix finding $CDROM on OS X. Thanks to niederstrasser for the patch.
+    Closes issue 71.
+
  -- Steve McIntyre <93sam@debian.org>  Tue, 18 Sep 2012 12:42:11 +0100
 
 abcde 2.5.4