mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
scripts/makefile_helper: make sure variables are set before running an rm
This commit is contained in:
parent
ab5106a617
commit
03f142b99e
@ -8,6 +8,11 @@ set -e
|
||||
# If config/options can't be sourced, abort. PWD isn't the expected ROOT.
|
||||
. config/options ""
|
||||
|
||||
if [ -z "${BUILD_BASE}" -o -z "${BUILD_ROOT}" ]; then
|
||||
# make sure variables are set before running an rm
|
||||
echo "error: ${0}: both BUILD_BASE and BUILD_ROOT must be set when running \"[clean|distclean]\"; aborting"
|
||||
exit 1
|
||||
fi
|
||||
# task handling
|
||||
case $1 in
|
||||
--clean)
|
||||
|
Loading…
x
Reference in New Issue
Block a user