Re: Slight enhancement of GIT wrapper
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 13, 2005, 23:07 UTC
- Message-ID
- <Pine.LNX.4.58.0504140106470.15139@wgmdd8.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20050413225509.GL25711@pasky.ji.cz>
Hi,
On Thu, 14 Apr 2005, Petr Baudis wrote:
Show 8 quoted lines
> Dear diary, on Wed, Apr 13, 2005 at 10:49:16PM CEST, I got a letter > where Pavel Pisa <pisa@cmp.felk.cvut.cz> told me that... > > > + > > +if [ -h "$0" ]; then > > + GIT_DIR=`ls -l "$0" | sed 's/^.*-> *\(.*\) *$/\1/'` > > Well, I don't like this much, but I'm not sure how to do better.
How about
GIT_DIR=$(ls -L "$0")
Ciao, Dscho