Added a missing $.
authordata <data@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Mon, 2 Jan 2006 16:51:40 +0000 (16:51 +0000)
committerdata <data@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Mon, 2 Jan 2006 16:51:40 +0000 (16:51 +0000)
Added -p to the mkdir stanzas.

git-svn-id: http://abcde.googlecode.com/svn/trunk@172 a0fa61bc-5347-0410-a1a9-7f54aa4e1825

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