fix core
: Relive the "sourcesourcesource" problem all over again.
This commit is contained in:
parent
68bbf03d92
commit
71a331f280
1 changed files with 14 additions and 14 deletions
28
blueprint.sh
28
blueprint.sh
|
@ -874,33 +874,33 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
|
|||
if [[ $identifier == *"~"* ]]; then PRINT WARNING "'identifier' contains '~' and may result in an error.";fi
|
||||
|
||||
# Replace $name variables.
|
||||
sed -i "s~[name]~$name~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~[name]~$name~g" ".blueprint/extensions/blueprint/private/build/extensions/button.blade.php.bak"
|
||||
sed -i "s~\[name\]~$name~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~\[name\]~$name~g" ".blueprint/extensions/blueprint/private/build/extensions/button.blade.php.bak"
|
||||
|
||||
# Replace $description variables.
|
||||
sed -i "s~[description]~$description~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~\[description\]~$description~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
|
||||
# Replace $version variables.
|
||||
sed -i "s~[version]~$version~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~[version]~$version~g" ".blueprint/extensions/blueprint/private/build/extensions/button.blade.php.bak"
|
||||
sed -i "s~\[version\]~$version~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~\[version\]~$version~g" ".blueprint/extensions/blueprint/private/build/extensions/button.blade.php.bak"
|
||||
|
||||
# Replace $ICON variables.
|
||||
sed -i "s~[icon]~$ICON~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~\[icon\]~$ICON~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
|
||||
# Replace $website variables.
|
||||
if [[ $website != "" ]]; then
|
||||
sed -i "s~[website]~$website~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~<!--[web] ~~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~ [web]-->~~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~[webicon]~$websiteiconclass~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~\[website\]~$website~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~<!--\[web\] ~~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~ \[web\]-->~~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
sed -i "s~\[webicon\]~$websiteiconclass~g" ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
fi
|
||||
|
||||
# Replace $identifier variables.
|
||||
if [[ $controller_type == "default" ]]; then
|
||||
sed -i "s~[id]~$identifier~g" ".blueprint/extensions/blueprint/private/build/extensions/controller.php.bak"
|
||||
sed -i "s~\[id\]~$identifier~g" ".blueprint/extensions/blueprint/private/build/extensions/controller.php.bak"
|
||||
fi
|
||||
sed -i "s~[id]~$identifier~g" ".blueprint/extensions/blueprint/private/build/extensions/route.php.bak"
|
||||
sed -i "s~[id]~$identifier~g" ".blueprint/extensions/blueprint/private/build/extensions/button.blade.php.bak"
|
||||
sed -i "s~\[id\]~$identifier~g" ".blueprint/extensions/blueprint/private/build/extensions/route.php.bak"
|
||||
sed -i "s~\[id\]~$identifier~g" ".blueprint/extensions/blueprint/private/build/extensions/button.blade.php.bak"
|
||||
|
||||
# Place extension admin view content into template.
|
||||
echo -e "$CONTENT\n@endsection" >> ".blueprint/extensions/blueprint/private/build/extensions/admin.blade.php.bak"
|
||||
|
@ -946,7 +946,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
|
|||
OLDBUTTON_RESULT=$(<.blueprint/extensions/"$identifier"/private/.store/build/button.blade.php)
|
||||
sed -i "s~$OLDBUTTON_RESULT~~g" "resources/views/admin/extensions.blade.php"
|
||||
fi
|
||||
sed -i "s~<!-- [entryplaceholder] -->~$ADMINBUTTON_RESULT\n<!-- [entryplaceholder] -->~g" "resources/views/admin/extensions.blade.php"
|
||||
sed -i "s~<!-- \[entryplaceholder\] -->~$ADMINBUTTON_RESULT\n<!-- \[entryplaceholder\] -->~g" "resources/views/admin/extensions.blade.php"
|
||||
|
||||
# Place dashboard wrapper
|
||||
if [[ $dashboard_wrapper != "" ]]; then
|
||||
|
|
Loading…
Reference in a new issue