mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Switch to using cat with EOF doc instead of trying to quote newlines for echo.
This commit is contained in:
parent
cb74375be7
commit
8c88af89e3
@ -1,11 +1,13 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in New Issue
Block a user