scripts/makefile_helper: shellcheck changes

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard
2022-10-02 01:49:29 +00:00
parent 839125c0fb
commit 722cfbade5

View File

@@ -10,7 +10,7 @@ set -e
BUILD_ROOT=$(PROJECT= DEVICE= ARCH= . config/options "" && echo "${BUILD_ROOT}") BUILD_ROOT=$(PROJECT= DEVICE= ARCH= . config/options "" && echo "${BUILD_ROOT}")
BUILD_BASE=$(PROJECT= DEVICE= ARCH= . config/options "" && echo "${BUILD_BASE}") BUILD_BASE=$(PROJECT= DEVICE= ARCH= . config/options "" && echo "${BUILD_BASE}")
if [ -z "${BUILD_BASE}" -o -z "${BUILD_ROOT}" ]; then if [ -z "${BUILD_BASE}" ] || [ -z "${BUILD_ROOT}" ]; then
# make sure variables are set before running an rm # 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" echo "error: ${0}: both BUILD_BASE and BUILD_ROOT must be set when running \"[clean|distclean]\"; aborting"
exit 1 exit 1