bug fix for --confdir
authorTong Sun <suntong@cpan.org>
Sat, 18 Oct 2008 05:36:35 +0000 (01:36 -0400)
committerMichael Prokop <mika@grml.org>
Mon, 20 Oct 2008 14:04:51 +0000 (16:04 +0200)
previously files are not copied from within confdir. fixed.

grml-debootstrap

index 01c7665..78f70ac 100755 (executable)
@@ -119,6 +119,8 @@ fi
   if ! . "$CONFFILES/config" ; then
     eerror "Error reading config file $CONFFILES/config" ; eend 1 ; exit 1
   fi
   if ! . "$CONFFILES/config" ; then
     eerror "Error reading config file $CONFFILES/config" ; eend 1 ; exit 1
   fi
+  # restore the command line parameter value
+  CONFFILES=$_opt_confdir
 }
 # }}}
 
 }
 # }}}