Mercurial > hg > openjdk > lambda
changeset 875:6d7f27953da6
8024200: handle hg wrapper with space after #!
Reviewed-by: tbell
author | mduigou |
---|---|
date | Tue, 03 Sep 2013 15:23:16 -0700 |
parents | 51a61778a99d |
children | 73355c4c1bc8 |
files | common/bin/hgforest.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common/bin/hgforest.sh Thu Aug 29 16:04:14 2013 -0700 +++ b/common/bin/hgforest.sh Tue Sep 03 15:23:16 2013 -0700 @@ -47,7 +47,7 @@ bpython="" if [ "#!" = "$has_hash_bang" ] ; then - python="`head -n 1 ${whichhg} | cut -b 3-`" + python="`head -n 1 ${whichhg} | cut -b 3- | sed -e 's/^[ \t]*//;s/[ \t]*$//'`" bpython="`basename "$python"`" fi