commit | 0e90cf9ba0ebff017b843a20aced1b5d193873b5 | [log] [tgz] |
---|---|---|
author | Mike Duigou <mduigou@openjdk.org> | Tue Sep 03 15:23:16 2013 -0700 |
committer | Mike Duigou <mduigou@openjdk.org> | Tue Sep 03 15:23:16 2013 -0700 |
tree | 135bf174a5c931f5ae91ad2c75db04c649cbd140 | |
parent | 3c108d65ed07325bb0141ed15ee11e91051cf1a3 [diff] |
8024200: handle hg wrapper with space after #! Reviewed-by: tbell
diff --git a/common/bin/hgforest.sh b/common/bin/hgforest.sh index 12cf023..1dc50390 100644 --- a/common/bin/hgforest.sh +++ b/common/bin/hgforest.sh
@@ -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