fix copying of image to cd

This commit is contained in:
Joey Hess 2006-05-15 22:04:18 +00:00
parent 0bcfa7bdad
commit 9ce8394fb7
1 changed files with 3 additions and 2 deletions

View File

@ -124,7 +124,7 @@ extra_image () {
image=$1
dir=$(dirname "$image")
if [ ! -e "cdrom/$image" ]; then
if [ ! -e "$image" ]; then
mkdir -p $dir
if [ ! "$DI_WWW_HOME" ];then
if [ ! "$DI_DIR" ];then
@ -137,8 +137,9 @@ extra_image () {
fi
if [ ! -d $CDDIR/install/$dir ]; then
cp -a "$image" $CDDIR/install/$dir
mkdir -p $CDDIR/install/$dir
fi
cp -a "$image" $CDDIR/install/$dir/
}
# Only disk one gets the extra files installed