android: proper escaping in gen-version.sh
This commit is contained in:
parent
a4ec54551a
commit
acba3e8c7b
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ echo -n '<string name="git_revisions">' >> $GIT_REV_XML
|
||||||
echo -n '<b>Version information:</b>\n' >> $GIT_REV_XML
|
echo -n '<b>Version information:</b>\n' >> $GIT_REV_XML
|
||||||
git submodule --quiet foreach --recursive \
|
git submodule --quiet foreach --recursive \
|
||||||
'echo -n \<b\>`basename $name`:\</b\>\ \
|
'echo -n \<b\>`basename $name`:\</b\>\ \
|
||||||
`git log --abbrev-commit --pretty=oneline -1 | sed "s/\&/\&/g;s/>/>/g;s/</</g"`\\\\n' \
|
`git log --abbrev-commit --pretty=oneline -1 | sed "s/\&/\&/g;s/>/\>/g;s/</\</g"`\\\\n' \
|
||||||
| sed -e "s|'|\\\'|g" >> $GIT_REV_XML
|
| sed -e "s|'|\\\'|g" >> $GIT_REV_XML
|
||||||
echo -n $USER@$(hostname) $(date +%H:%M:%S-%d-%m-%y) >> $GIT_REV_XML
|
echo -n $USER@$(hostname) $(date +%H:%M:%S-%d-%m-%y) >> $GIT_REV_XML
|
||||||
echo '</string>' >> $GIT_REV_XML
|
echo '</string>' >> $GIT_REV_XML
|
||||||
|
|
Loading…
Add table
Reference in a new issue