Moved the root test to within the run_make function - no need to limit the creation of the Makefile or the extraction of the commands to root only

This commit is contained in:
Jeremy Huntwork 2005-11-01 12:45:16 +00:00
parent 4457252150
commit 38150e590e

12
jhalfs
View file

@ -824,6 +824,11 @@ run_make() {
#----------------------------#
# Test if make must be run.
if [ "$RUNMAKE" = "1" ] ; then
# Test to make sure we're running the build as root
if [ "$UID" != "0" ] ; then
echo "You must be logged in as root to successfully build LFS."
exit 1
fi
# Build the system
if [ -e $MKFILE ] ; then
echo -ne "Building the LFS system...\n"
@ -839,13 +844,6 @@ run_make() {
### MAIN ###
###################################
# Test to make sure we're running the build as root
if [ "$UID" != "0" ] ; then
echo "You must be logged in as root to successfully build LFS."
exit 1
fi
# Evaluate any command line switches
while test $# -gt 0 ; do