Added a missing $.
authorJesus Climent <mooch@debian.org>
Mon, 2 Jan 2006 16:51:40 +0000 (16:51 +0000)
committerJesus Climent <mooch@debian.org>
Mon, 2 Jan 2006 16:51:40 +0000 (16:51 +0000)
Added -p to the mkdir stanzas.

abcde

diff --git a/abcde b/abcde
index e91d114..139b353 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -107,7 +107,7 @@ f_seq_row ()
 f_seq_line ()
 {
        i=$1
-       if echo i | grep -q "[[:digit:]]" ; then
+       if echo $i | grep -q "[[:digit:]]" ; then
                while [ $i -ne `expr $2 + 1` ]
                do
                        printf $i" "
@@ -1495,7 +1495,7 @@ do_discid ()
                                exit 1
                        fi
                        rm -rf "$ABCDETEMPDIR" || exit 1
-                       mkdir "$ABCDETEMPDIR"
+                       mkdir -p "$ABCDETEMPDIR"
                        if [ "$?" -gt "0" ]; then
                                # Directory already exists or could not be created
                                echo "abcde: Temp directory $ABCDETEMPDIR could not be created." >&2
@@ -1517,7 +1517,7 @@ do_discid ()
                fi
        else
                # We are starting from scratch
-               mkdir "$ABCDETEMPDIR"
+               mkdir -p "$ABCDETEMPDIR"
                if [ "$?" -gt "0" ]; then
                        # Directory already exists or could not be created
                        echo "abcde: Temp directory $ABCDETEMPDIR could not be created." >&2