mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
'\' should be escaped twice, for the shell, and for tr
This commit is contained in:
parent
b16c2d675b
commit
6d87d8209c
@ -35,7 +35,7 @@ hg revert --no-backup foo
|
||||
rm foo
|
||||
# Under unix: file:///foobar/blah
|
||||
# Under windows: file:///c:/foobar/blah
|
||||
patchurl=`echo $HGTMP/url.diff | tr '\\' /`
|
||||
patchurl=`echo $HGTMP/url.diff | tr '\\\\' /`
|
||||
expr $patchurl : "\/" > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
patchurl='/'$patchurl
|
||||
|
Loading…
Reference in New Issue
Block a user