From be57fe61bd13115aa0a26ff063b93e76ba8e2548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 25 Jun 2023 14:25:50 +0100 Subject: [PATCH] move update script for wp plugins --- web/wordpress-plugins/default.nix | 7 +++---- web/wordpress-themes/default.nix | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/web/wordpress-plugins/default.nix b/web/wordpress-plugins/default.nix index d180a2f..80ec82a 100644 --- a/web/wordpress-plugins/default.nix +++ b/web/wordpress-plugins/default.nix @@ -24,10 +24,9 @@ in ''; installPhase = "mkdir -p $out; cp -R $pname/* $out/"; meta = {inherit (source) description;}; - passthru.updateScript = - if name == "activitypub" - then ./update.sh - else []; }; }) plugins) + // { + passthru.updateScript = ./update.sh; + } diff --git a/web/wordpress-themes/default.nix b/web/wordpress-themes/default.nix index 615cd52..c277369 100644 --- a/web/wordpress-themes/default.nix +++ b/web/wordpress-themes/default.nix @@ -24,10 +24,9 @@ in ''; installPhase = "mkdir -p $out; cp -R $pname/* $out/"; meta = {inherit (source) description;}; - passthru.updateScript = - if name == "activitypub" - then ./update.sh - else []; }; }) themes) + // { + passthru.updateScript = ./update.sh; + }