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:
parent
4457252150
commit
38150e590e
1 changed files with 5 additions and 7 deletions
12
jhalfs
12
jhalfs
|
@ -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
|
||||
|
|
Reference in a new issue