drupal: fix update script (#465041)
This commit is contained in:
@@ -28,8 +28,11 @@ php.buildComposerProject2 (finalAttrs: {
|
||||
updateScript = writeScript "update.sh" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p nix-update xmlstarlet
|
||||
|
||||
set -eu -o pipefail
|
||||
version=$(curl -k --silent --globoff "https://updates.drupal.org/release-history/drupal/current" | xmlstarlet sel -t -v "project/releases/release[1]/tag")
|
||||
|
||||
version=$(curl -k --silent --globoff "https://updates.drupal.org/release-history/drupal/current" | xmlstarlet sel -t -v "/project/releases/release/tag[not(contains(., 'alpha'))][not(contains(., 'beta'))][not(contains(., '-rc'))]" | grep -m 1 '.')
|
||||
|
||||
nix-update drupal --version $version
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user