Mercurial > hg > openjdk > lambda
changeset 859:374121124496
8024200: handle hg wrapper with space after #!
Reviewed-by: tbell
author | mduigou |
---|---|
date | Tue, 03 Sep 2013 15:23:16 -0700 |
parents | e9cb3dcf066d |
children | 1ca84040b787 |
files | common/bin/hgforest.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common/bin/hgforest.sh Sat Aug 31 17:20:28 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