wp-cli: ensure arguments are sent to wp-cli and not php

This commit is contained in:
Peter Hoeg 2022-03-21 15:15:37 +08:00
parent 6134c2f891
commit 86e74a4b97

View File

@ -41,7 +41,8 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${lib.getBin php}/bin/php $out/bin/wp \ makeWrapper ${lib.getBin php}/bin/php $out/bin/wp \
--add-flags "-c $dir/php.ini" \ --add-flags "-c $dir/php.ini" \
--add-flags "-f $dir/wp-cli" --add-flags "-f $dir/wp-cli" \
--add-flags "--"
# this is a very basic run test # this is a very basic run test
$out/bin/wp --info >/dev/null $out/bin/wp --info >/dev/null