We don't need /lib/main.sh anymore

This commit is contained in:
hzy 2022-10-09 13:32:46 +08:00 committed by Igor Pečovnik
parent 91412214e4
commit 76393cf85a
2 changed files with 7 additions and 31 deletions

View File

@ -297,5 +297,10 @@ while [[ "${1}" == *=* ]]; do
done
# shellcheck source=lib/main.sh
source "${SRC}"/lib/main.sh
prepare_and_config_main_build_single
if [[ -z $1 ]]; then
do_default
else
eval "$@"
fi

View File

@ -1,29 +0,0 @@
#!/bin/bash
#
# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
#
# This file is a part of the Armbian build script
# https://github.com/armbian/build/
if [[ $(basename "$0") == main.sh ]]; then
echo "Please use compile.sh to start the build process"
exit 255
fi
# Libraries include
# shellcheck source=import-functions.sh
source "${SRC}/lib/import-functions.sh"
prepare_and_config_main_build_single
if [[ -z $1 ]]; then
do_default
else
eval "$@"
fi