From: Michael Wallner Date: Wed, 19 Jan 2022 17:55:51 +0000 (+0100) Subject: fix composer autoload in bins X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=30ab131f201117ceaea80077b1a1d908a1f61e05;p=mdref%2Fmdref fix composer autoload in bins --- diff --git a/bin/ext2ref b/bin/ext2ref index 978b427..b5013db 100755 --- a/bin/ext2ref +++ b/bin/ext2ref @@ -1,7 +1,7 @@ #!/usr/bin/env php [ ...]\n", $argv[0]); diff --git a/bin/stub2ref b/bin/stub2ref index de1899b..f0d11b1 100755 --- a/bin/stub2ref +++ b/bin/stub2ref @@ -3,7 +3,7 @@ namespace mdref; -require_once __DIR__."/../vendor/autoload.php"; +require_once $_composer_autoload_path ?? __DIR__."/../vendor/autoload.php"; if ($argc < 3) { fprintf(STDERR, "Usage: cd ref- && %s \n", $argv[0]);