From 65eb8c0bd1465d489ecb1e303cb3f7997aed2915 Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Fri, 5 Apr 2024 16:45:46 -0400 Subject: [PATCH] Fix #158 Try multiple locations for box.json. If we cannot locate box.json, error out. --- dist/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/Makefile b/dist/Makefile index 1678e12f..c65dd797 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -31,7 +31,9 @@ clean: sodium-compat.phar: dist/box.json composer.lock if [ ! -d dist ]; then mkdir dist; fi - if [ ! -f dist/box.json ]; then cp ../dist/box.json dist/box.json; fi + if [ ! -f dist/box.json && -f ../box.json ]; then cp ../box.json dist/box.json; fi + if [ ! -f dist/box.json && -f ../dist/box.json ]; then cp ../dist/box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then echo "Could not locate box.json" && exit 255; fi cp dist/box.json . php -d phar.readonly=0 $(box) build -c box.json -v