Added check for the existance of the binaries to be replaced inside the build jais

This commit is contained in:
Rubén Rodríguez 2012-10-15 00:24:07 +02:00
parent fa80f51850
commit 0d963e03d2

View file

@ -146,6 +146,7 @@ EOF
then then
for BIN in /bin/uname /usr/bin/arch for BIN in /bin/uname /usr/bin/arch
do do
[ -f $BIN ] || continue
mv $CHROOT/$BIN $CHROOT/$BIN.orig mv $CHROOT/$BIN $CHROOT/$BIN.orig
cat << EOF > $CHROOT/$BIN cat << EOF > $CHROOT/$BIN
#!/bin/sh #!/bin/sh