Corrected a missing if/fi
authorJesus Climent <mooch@debian.org>
Thu, 22 Mar 2007 21:39:30 +0000 (21:39 +0000)
committerJesus Climent <mooch@debian.org>
Thu, 22 Mar 2007 21:39:30 +0000 (21:39 +0000)
abcde

diff --git a/abcde b/abcde
index ab379ae..da550a2 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -362,11 +362,11 @@ checkexec ()
                        log info  "Define the full path to the executable if it exists on your system." >&2
                        if [ -e /etc/debian_release ] ; then
                                case $X in
-                                       oggenc) MISSING_PACKAGE=vorbis-tools ;;
-                                       lame)   MISSING_PACKAGE=lame ;;
-                                       flac)   MISSING_PACKAGE=flac ;;
+                                       oggenc)         MISSING_PACKAGE=vorbis-tools ;;
+                                       lame|flac)      MISSING_PACKAGE=$X ;;
                                esac
                                log info "Hint: apt-get install $MISSING_PACKAGE" >&2
+                       fi
                        exit 1
                elif [ ! -x "$(which $X)" ]; then
                        log error "$X is not executable." >&2