]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
fixed fai file copying
authorhackbard <hackbard>
Tue, 13 Sep 2005 23:19:52 +0000 (23:19 +0000)
committerhackbard <hackbard>
Tue, 13 Sep 2005 23:19:52 +0000 (23:19 +0000)
doc/CHANGELOG
fai/scripts/rc_fai.sh

index d1106aa3923ee55636a27676dad7e3e26b9c3018..f678f8d07603d2dd9a88f635b2e38d5464fd5470 100644 (file)
@@ -1,3 +1,7 @@
+*) 2005-09-14
+
+- fixed fai file copying
+
 *) 2005-09-13
 
 - added git(-core) and asciidoc package
index d1e4f6748ad0f718b997ac05e24f3938c750adcf..1947361a7b15b5e3a5909bd9c0b08a7de143ba6d 100755 (executable)
@@ -114,7 +114,11 @@ cd /fai/files
 for file in `find -type f | grep -v CVS`; do
        srcf=`basename $file`
        trgf=`dirname $file`
-       [ "$srcf" = "DEFAULT" -o "$srcf" = "$myip" ] && cp -v $file $root/$trgf
+       trgdir=`dirname $trgf`
+       if [ "$srcf" = "DEFAULT" -o "$srcf" = "$myip" ] ; then
+               mkdir -p $root/$trgdir
+               cp -v $file $root/$trgf
+       fi
 done
 
 #