replace README on morph
This commit is contained in:
parent
ff3ec96819
commit
f2b904b5f9
3
init.sh
3
init.sh
|
|
@ -53,6 +53,9 @@ git remote remove origin
|
|||
# remove this script from the project (but keep on disk for now)
|
||||
git rm --cached init.sh
|
||||
|
||||
# replace the README with a stub
|
||||
echo "# $name" >| README.md
|
||||
|
||||
# escape HTML special characters (&, <, and >), but also sed special characters (& again, \, and /)
|
||||
htmlname=$(echo -n "$name" | sed 's/&/\&/g; s/</\</g; s/>/\>/g; s:[\\/&]:\\&:g')
|
||||
sed -i "s/PROJECT NAME/$htmlname/" ui/src/main_window.ui
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user