Skip to content
Snippets Groups Projects
Commit 5d14d711 authored by Lee Cantey's avatar Lee Cantey
Browse files

Switch to using cat with EOF doc instead of trying to quote newlines for echo.

parent 57d29a45
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
echo "[extensions]" >> $HGRCPATH
echo "mq=" >> $HGRCPATH
echo "[defaults]" >> $HGRCPATH
echo "log = --template \"{rev}: {desc}\\n\"" >> $HGRCPATH
echo "heads = --template \"{rev}: {desc}\\n\"" >> $HGRCPATH
echo "incoming = --template \"{rev}: {desc}\\n\"" >> $HGRCPATH
cat <<EOF >> $HGRCPATH
[extensions]
mq=
[defaults]
log = --template "{rev}: {desc}\\n"
heads = --template "{rev}: {desc}\\n"
incoming = --template "{rev}: {desc}\\n"
EOF
echo "====== .hgrc"
cat $HGRCPATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment