From aac4302c36d08c6390e159cbf88e34809ce79129 Mon Sep 17 00:00:00 2001 From: purple Date: Fri, 21 Jul 2023 15:57:30 +0200 Subject: [PATCH] Only skip including css on duplicate extensions --- blueprint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blueprint.sh b/blueprint.sh index 13a64e2..9d34242 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -349,8 +349,10 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then ICON="/assets/extensions/$identifier/icon.jpg"; CONTENT=$(cat .blueprint/tmp/$n/$admin_view); - if [[ $INJECTCSS == "y" && $DUPLICATE != "y" ]]; then - sed -i "s!/* blueprint reserved line */!/* blueprint reserved line */\n@import url(/assets/extensions/$identifier/$identifier.style.css);!g" public/themes/pterodactyl/css/pterodactyl.css; + if [[ $INJECTCSS == "y" ]]; then + if [[ $DUPLICATE != "y" ]]; then + sed -i "s!/* blueprint reserved line */!/* blueprint reserved line */\n@import url(/assets/extensions/$identifier/$identifier.style.css);!g" public/themes/pterodactyl/css/pterodactyl.css; + fi; cp -R .blueprint/tmp/$n/$css/* public/assets/extensions/$identifier/$identifier.style.css 2> /dev/null; fi;