From 17886749773e56cfa66d3675c45584a6c0528154 Mon Sep 17 00:00:00 2001 From: lapineige Date: Fri, 26 May 2023 09:33:47 +0200 Subject: [PATCH] fix frontend switcher grep --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index a253277..db9d50e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -198,7 +198,7 @@ fi # Add frontend switcher if needed -if grep -q ':pleroma, :frontends, :pickable' $config # This is not resilient to any spacing change, to be refined +if grep -zP 'config :pleroma, :frontends,\n\K pickable' $config # This syntax takes the new line into account # This is not resilient to any spacing change, to be refined then ynh_script_progression --message="Frontend switcher config already existing, nothing to do about it." --weight=0 else