Skip to content

Commit

Permalink
Fix #158
Browse files Browse the repository at this point in the history
Try multiple locations for box.json.
If we cannot locate box.json, error out.
  • Loading branch information
paragonie-security committed Apr 5, 2024
1 parent c61c877 commit 65eb8c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 65eb8c0

Please sign in to comment.