Making default argument guessing for non-debian systems a bit more robust.
This commit is contained in:
parent
c5f79482d3
commit
7be98b8ec2
|
@ -259,8 +259,14 @@ Set_defaults ()
|
|||
LB_ARCHITECTURES="amd64"
|
||||
;;
|
||||
*)
|
||||
Echo_warning "Can't determine architecture, assuming i386"
|
||||
LB_ARCHITECTURES="i386"
|
||||
if [ -e /lib64 ]
|
||||
then
|
||||
LB_ARCHITECTURES="amd64"
|
||||
else
|
||||
LB_ARCHITECTURES="i386"
|
||||
fi
|
||||
|
||||
Echo_warning "Can't determine architecture, assuming ${LB_ARCHITECTURES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue