Srcdir is the argument itself, not its dirname

This commit is contained in:
Yevgen Muntyan 2011-04-15 19:17:41 -07:00
parent 80c2c1dbcd
commit 1d94a4ff40

View File

@ -8,8 +8,7 @@ if [ ! -d $1 ]; then
exit 1
fi
srcdir=`dirname $1`
srcdir=`cd $srcdir && pwd`
srcdir=`cd $1 && pwd`
if [ "`cd $srcdir && hg st`" ]; then
echo "uncommitted changes, aborting"