From 5018cb5ab7f86132b51b025a64062e2ec2766e38 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Thu, 30 Mar 2023 13:53:04 +0300 Subject: [PATCH] configure.sh: Don't allow people to build in the root of the source tree. --- configure.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.sh b/configure.sh index f7b70544..bc3ccc65 100755 --- a/configure.sh +++ b/configure.sh @@ -98,6 +98,11 @@ function configure() { local srcdir srcdir="$(dirname "$0")" + if [[ "$srcdir" = "." ]]; then + err "Cannot do a top level in-tree build." + die "Create a subdirectory in build/ or outside of the tree and run configure.sh from there." + fi + # nothing specified, getting the default value from the Makefile to test the # container engine if [[ -z $steamrt_image ]]; then