Fixing infinit loop when using autoconfig for lh_config and lh_clean.
This commit is contained in:
parent
b038c34072
commit
695cdf1530
|
@ -10,10 +10,13 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Read meta config
|
# Read meta config
|
||||||
if [ "${1}" != "autoconfig" ] && [ -x scripts/clean ]
|
if [ "${1}" != "noautoconfig" ] && [ -x scripts/clean ]
|
||||||
then
|
then
|
||||||
./scripts/clean ${@}
|
./scripts/clean ${@}
|
||||||
else
|
fi
|
||||||
|
|
||||||
|
if [ "${1}" = "noautoconfig" ]
|
||||||
|
then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -51,10 +54,10 @@ for ARGUMENT in ${ARGUMENTS}
|
||||||
do
|
do
|
||||||
case "${ARGUMENT}" in
|
case "${ARGUMENT}" in
|
||||||
--all)
|
--all)
|
||||||
"${0}" --chroot
|
"${0}" noautoconfig --chroot
|
||||||
"${0}" --binary
|
"${0}" noautoconfig --binary
|
||||||
"${0}" --stage
|
"${0}" noautoconfig --stage
|
||||||
"${0}" --source
|
"${0}" noautoconfig --source
|
||||||
|
|
||||||
if [ -d scripts ]
|
if [ -d scripts ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -10,10 +10,13 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Read meta config
|
# Read meta config
|
||||||
if [ "${1}" != "autoconfig" ] && [ -x scripts/config ]
|
if [ "${1}" != "noautoconfig" ] && [ -x scripts/config ]
|
||||||
then
|
then
|
||||||
./scripts/config ${@}
|
./scripts/config ${@}
|
||||||
else
|
fi
|
||||||
|
|
||||||
|
if [ "${1}" = "noautoconfig" ]
|
||||||
|
then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue