Fix for "input file is output file"
This commit is contained in:
parent
e4e131aee4
commit
e6398f7609
1 changed files with 8 additions and 2 deletions
10
blueprint.sh
10
blueprint.sh
|
@ -437,7 +437,10 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
||||||
sed -i "s~<!--␀$identifier:start␀-->~~g" resources/views/templates/wrapper.blade.php;
|
sed -i "s~<!--␀$identifier:start␀-->~~g" resources/views/templates/wrapper.blade.php;
|
||||||
sed -i "s~<!--␀$identifier:stop␀-->~~g" resources/views/templates/wrapper.blade.php;
|
sed -i "s~<!--␀$identifier:stop␀-->~~g" resources/views/templates/wrapper.blade.php;
|
||||||
fi;
|
fi;
|
||||||
cat <(echo "<!--␀$identifier:start␀-->") .blueprint/tmp/$n/$dashboard_wrapper > .blueprint/tmp/$n/$dashboard_wrapper;
|
touch .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK;
|
||||||
|
cat <(echo "<!--␀$identifier:start␀-->") .blueprint/tmp/$n/$dashboard_wrapper > .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK;
|
||||||
|
cp .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK .blueprint/tmp/$n/$dashboard_wrapper;
|
||||||
|
rm .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK;
|
||||||
echo "<!--␀$identifier:stop␀-->" >> .blueprint/tmp/$n/$dashboard_wrapper;
|
echo "<!--␀$identifier:stop␀-->" >> .blueprint/tmp/$n/$dashboard_wrapper;
|
||||||
sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$dashboard_wrapper" resources/views/templates/wrapper.blade.php;
|
sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$dashboard_wrapper" resources/views/templates/wrapper.blade.php;
|
||||||
fi;
|
fi;
|
||||||
|
@ -449,7 +452,10 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
||||||
sed -i "s~<!--␀$identifier:start␀-->~~g" resources/views/layouts/admin.blade.php;
|
sed -i "s~<!--␀$identifier:start␀-->~~g" resources/views/layouts/admin.blade.php;
|
||||||
sed -i "s~<!--␀$identifier:stop␀-->~~g" resources/views/layouts/admin.blade.php;
|
sed -i "s~<!--␀$identifier:stop␀-->~~g" resources/views/layouts/admin.blade.php;
|
||||||
fi;
|
fi;
|
||||||
cat <(echo "<!--␀$identifier:start␀-->") .blueprint/tmp/$n/$admin_wrapper > .blueprint/tmp/$n/$admin_wrapper;
|
touch .blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK;
|
||||||
|
cat <(echo "<!--␀$identifier:start␀-->") .blueprint/tmp/$n/$admin_wrapper > .blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK;
|
||||||
|
cp .blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK .blueprint/tmp/$n/$admin_wrapper;
|
||||||
|
rm .blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK;
|
||||||
echo "<!--␀$identifier:stop␀-->" >> .blueprint/tmp/$n/$admin_wrapper;
|
echo "<!--␀$identifier:stop␀-->" >> .blueprint/tmp/$n/$admin_wrapper;
|
||||||
sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$admin_wrapper" resources/views/layouts/admin.blade.php;
|
sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$admin_wrapper" resources/views/layouts/admin.blade.php;
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue