Only skip including css on duplicate extensions
This commit is contained in:
parent
8191990d80
commit
aac4302c36
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue