Fixed the generation of the chroot commands in the Makefile.
This commit is contained in:
parent
4c62c61a0a
commit
a6d9007020
1 changed files with 1 additions and 1 deletions
2
jhalfs
2
jhalfs
|
@ -530,7 +530,7 @@ build_Makefile() {
|
||||||
i=1
|
i=1
|
||||||
for file in chapter06/*chroot* ; do
|
for file in chapter06/*chroot* ; do
|
||||||
chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \
|
chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \
|
||||||
-e 's/ */ /g' -e 's|\\$|&&|g' -e 's|$| -c|'`
|
-e 's/ */ /g' -e 's|\\$|&&|g' -e 's|&&exit||g' -e 's|$| -c|'`
|
||||||
echo -e "CHROOT$i= $chroot\n" >> $MKFILE
|
echo -e "CHROOT$i= $chroot\n" >> $MKFILE
|
||||||
i=`expr $i + 1`
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
|
|
Reference in a new issue