1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/akkoma_ynh.git synced 2024-09-03 20:36:17 +02:00

fix frontend switcher grep

This commit is contained in:
lapineige 2023-05-26 09:33:47 +02:00 committed by GitHub
parent 90bdb9dcaf
commit 1788674977
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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