From 44f9dceeb4786b42e42fb2ebed46ed4c4b81a436 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Fri, 28 Apr 2017 22:27:50 +0200 Subject: [PATCH] Require PROJECT environment to be set for lb build --- live-build/auto/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index 103b5005..5451f42a 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -10,6 +10,11 @@ Arguments "${@}" Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Set_defaults +if [ -z "${PROJECT:-}" ]; then + echo "PROJECT environment variable has to be set" >&2 + exit 1 +fi + # Setup cleanup function Setup_cleanup