replace README on morph
This commit is contained in:
parent
af79b01fff
commit
d7c5b34645
3
init.sh
3
init.sh
|
|
@ -54,6 +54,9 @@ git remote remove origin
|
|||
git rm --cached init.sh
|
||||
git rm -r skel-test
|
||||
|
||||
# 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