Only skip including css on duplicate extensions

This commit is contained in:
purple 2023-07-21 15:57:30 +02:00
parent 8191990d80
commit aac4302c36

View file

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