common/bin/hgforest.sh
changeset 21171 5f450c98c6fb
parent 21160 81fda7dbde35
parent 19752 935eac795255
child 21173 0cd521b18e6b
--- a/common/bin/hgforest.sh	Tue Aug 27 16:05:30 2013 -0300
+++ b/common/bin/hgforest.sh	Fri Sep 13 10:14:55 2013 -0300
@@ -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