diff options
author | jnqnfe <jnqnfe@gmail.com> | 2015-02-05 03:30:47 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-10 12:39:37 +0000 |
commit | dff08fa3f7b05be9b86e03dd8a1473b7ff41340f (patch) | |
tree | 0fe8759090791a3d88744669e3578d18565f9ab1 /scripts/build/clean | |
parent | 061d7cb3406c99a8bbb7b563625fe00357ba90aa (diff) | |
download | vyos-live-build-dff08fa3f7b05be9b86e03dd8a1473b7ff41340f.tar.gz vyos-live-build-dff08fa3f7b05be9b86e03dd8a1473b7ff41340f.zip |
tidy script init (3/4) - top level commands
Partialfix for #952919
Gbp-Dch: Short
Diffstat (limited to 'scripts/build/clean')
-rwxr-xr-x | scripts/build/clean | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/build/clean b/scripts/build/clean index ce9404b1c..ea06c0ac3 100755 --- a/scripts/build/clean +++ b/scripts/build/clean @@ -13,7 +13,7 @@ set -e # Including common functions [ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh -# Read meta config +# Redirecting to auto script if required if [ "${1}" != "noauto" ] && [ -x auto/clean ] then Echo_message "Executing auto/clean script." @@ -31,13 +31,11 @@ DESCRIPTION="Clean up system build directories" HELP="" USAGE="${PROGRAM} [--all] [--cache] [--chroot] [--binary] [--purge] [--remove] [--stage] [--source]" -#Arguments "${@}" +# Processing arguments and configuration files +# Note: Deliberately not passing parameters through to Arguments function call here! +Init_config_data -# Reading configuration files -Read_conffiles $(Common_config_files) -Set_defaults - -# Avoid cases were users accidentally nuke their config/binary +# Avoiding cases were users accidentally nuke their config/binary if [ ! -d config ] && [ "$(basename ${PWD})" = "config" ] then Echo_error "%s is not a good live-build working directory to clean." "${PWD}" |