wordpress: fix generate.sh
This commit is contained in:
parent
2b04691890
commit
3a0ab52313
1 changed files with 4 additions and 1 deletions
|
@ -1,12 +1,15 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -I nixpkgs=../../../../.. -i bash -p wp4nix
|
||||
#!nix-shell -i bash -p wp4nix jq
|
||||
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
set -x
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
nixFlags="--option experimental-features nix-command eval --raw --impure --expr"
|
||||
export NIX_PATH=nixpkgs=../../../../..
|
||||
export WP_VERSION=$(nix $nixFlags '(import <nixpkgs> {}).wordpress.version')
|
||||
|
||||
PLUGINS=`cat wordpress-plugins.json | jq -r '.[]' | sed -z 's/\n/,/g;s/,$/\n/'`
|
||||
|
|
Loading…
Reference in a new issue