From 1840b98d228bdad83869b191d7e51f9bb6624d8d Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Fri, 5 Apr 2024 17:00:10 -0400 Subject: [PATCH] Fix box packaging --- dist/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/Makefile b/dist/Makefile index c65dd797..34c4817c 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -31,8 +31,10 @@ clean: sodium-compat.phar: dist/box.json composer.lock if [ ! -d dist ]; then mkdir dist; 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 cp ./box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then cp ../box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then cp ../dist/box.json dist/box.json; fi + if [ ! -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